summaryrefslogtreecommitdiff
path: root/dot-local-bin/brightness
diff options
context:
space:
mode:
Diffstat (limited to 'dot-local-bin/brightness')
-rwxr-xr-xdot-local-bin/brightness7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot-local-bin/brightness b/dot-local-bin/brightness
new file mode 100755
index 0000000..ab365a9
--- /dev/null
+++ b/dot-local-bin/brightness
@@ -0,0 +1,7 @@
+#!/usr/bin/env fish
+
+brightnessctl set $argv[1]
+
+set curr (math -s0 -mround (brightnessctl get) / (brightnessctl max) "*" 100)
+
+notify-send -t 1000 -a 'brightness' -h int:value:$curr " $curr"