diff --git a/bin/.bin/fade b/bin/.bin/fade index 2475754..7dd7673 100755 --- a/bin/.bin/fade +++ b/bin/.bin/fade @@ -1,12 +1,18 @@ #!/bin/sh -count=100 +hostname=`hostname` +count=200 +if [[ $hostname = 'titan' ]] +then + count=50 +fi + for i in $(seq $count); do case $1 in 'up') - brightnessctl s +5 + brightnessctl s +3 ;; 'down') - brightnessctl s 5- + brightnessctl s 3- ;; esac done diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 9c2ba40..bd9c169 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -260,10 +260,12 @@ set $casts ~/videos/casts # Sreen brightness controls bindsym F5 exec ~/.bin/fade down bindsym F6 exec ~/.bin/fade up +bindsym XF86MonBrightnessUp exec ~/.bin/fade up +bindsym XF86MonBrightnessDown exec ~/.bin/fade down -bindsym XF86MonBrightnessUp exec ~/.config/i3/bright.sh -u # increase screen brightness -bindsym XF86MonBrightnessDown exec ~/.config/i3/bright.sh -d # decrease screen brightness -bindsym XF86Search exec ~/.config/i3/bright.sh 1 # decrease screen brightness +#bindsym XF86MonBrightnessUp exec ~/.config/i3/bright.sh -u # increase screen brightness +#bindsym XF86MonBrightnessDown exec ~/.config/i3/bright.sh -d # decrease screen brightness +#bindsym XF86Search exec ~/.config/i3/bright.sh 1 # decrease screen brightness #bindsym F5 exec ~/.config/i3/bright.sh -d # decrease screen brightness #bindsym F6 exec ~/.config/i3/bright.sh -u # increase screen brightness