summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc3
-rwxr-xr-xsxhkd/.local/bin/rofi-light5
2 files changed, 8 insertions, 0 deletions
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
index 6fe437c..fc2d4c1 100644
--- a/sxhkd/.config/sxhkd/sxhkdrc
+++ b/sxhkd/.config/sxhkd/sxhkdrc
@@ -68,6 +68,9 @@ XF86LaunchB
#XF86MonBrightness{Up,Down}
# light -{A,U} 5
+super + apostrophe
+ rofi-light
+
# keyboard brightness
#XF86KbdBrightness{Up,Down}
# kbdlight {up,down}
diff --git a/sxhkd/.local/bin/rofi-light b/sxhkd/.local/bin/rofi-light
new file mode 100755
index 0000000..96b0126
--- /dev/null
+++ b/sxhkd/.local/bin/rofi-light
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cur=$(light -G)
+val=$(rofi -dmenu -mesg "light $cur" -p "light -S " -l 0 -width 8)
+light -S $val