summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmenu-light
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dmenu-light')
-rwxr-xr-x.local/bin/dmenu-light4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/dmenu-light b/.local/bin/dmenu-light
new file mode 100755
index 0000000..988a073
--- /dev/null
+++ b/.local/bin/dmenu-light
@@ -0,0 +1,4 @@
+#!/bin/sh
+cur=$(light -G)
+val=$(dmenu -p "brightness ($cur):" < /dev/null)
+[ -n "$val" ] && light -S "$val"