summaryrefslogtreecommitdiffstats
path: root/sxhkd/.local/bin/rofi-light
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2017-12-31 23:25:42 -0500
committerAmin Bandali <amin@aminb.org>2017-12-31 23:27:53 -0500
commit7372a4ea463a511770e03a762d8e71c77abf2758 (patch)
treeeee3787d4b0245027d7ad53cc7153dad73c71222 /sxhkd/.local/bin/rofi-light
parentc790d9dc0026d4848ba4987ede93d17a120232a7 (diff)
downloadconfigs-7372a4ea463a511770e03a762d8e71c77abf2758.tar.gz
configs-7372a4ea463a511770e03a762d8e71c77abf2758.tar.xz
configs-7372a4ea463a511770e03a762d8e71c77abf2758.zip
rofi-light: rofi-based pop up for changing backlight brightness
Requires light (light-git on AUR) and rofi P.S. Happy New Year :)
Diffstat (limited to '')
-rwxr-xr-xsxhkd/.local/bin/rofi-light5
1 files changed, 5 insertions, 0 deletions
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