aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/choose-brightness.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/choose-brightness.sh')
-rwxr-xr-xscripts/choose-brightness.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/choose-brightness.sh b/scripts/choose-brightness.sh
new file mode 100755
index 0000000..b1cd7ba
--- /dev/null
+++ b/scripts/choose-brightness.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+current=$(ddcutil get 10 | sed "s/ /\n/g" | grep , | sed "s/,//g")
+
+new=$(seq 0 100 | dmenu -c -l 10 -g 10 -p "$current new:")
+
+ddcutil set 10 $new