[i3] Fix backlight script and hotkeys

This commit is contained in:
2022-01-12 09:43:20 -05:00
parent 3a8b6dd5aa
commit 544088a7fe
2 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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