aboutsummaryrefslogtreecommitdiff
path: root/home/.config/i3
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config/i3')
-rw-r--r--home/.config/i3/config2
-rwxr-xr-xhome/.config/i3/lightup6
2 files changed, 7 insertions, 1 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config
index c354201..42d0465 100644
--- a/home/.config/i3/config
+++ b/home/.config/i3/config
@@ -47,7 +47,7 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
-bindsym XF86MonBrightnessUp exec --no-startup-id light -S $(echo 1.122\*$(light) | bc)
+bindsym XF86MonBrightnessUp exec --no-startup-id ~/.config/i3/lightup
bindsym XF86MonBrightnessDown exec --no-startup-id light -S $(echo 0.891\*$(light) | bc)
# Use Mouse+$mod to drag floating windows to their wanted position
diff --git a/home/.config/i3/lightup b/home/.config/i3/lightup
new file mode 100755
index 0000000..7104923
--- /dev/null
+++ b/home/.config/i3/lightup
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ $(light) = 0.00 ]; then
+ light -S 0.07;
+else
+ light -S $(echo 1.122\*$(light) | bc);
+fi;