Ver Fonte

[i3] Fix backlight script and hotkeys

Colin Powell há 3 anos atrás
pai
commit
544088a7fe
2 ficheiros alterados com 14 adições e 6 exclusões
  1. 9 3
      bin/.bin/fade
  2. 5 3
      i3/.config/i3/config

+ 9 - 3
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

+ 5 - 3
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