[i3] Fix backlight script and hotkeys
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user