]> git.armaanb.net Git - bin.git/commitdiff
Brightness-set: Add script. Sets backlight level
authorArmaan Bhojwani <me@armaanb.net>
Fri, 29 Jan 2021 03:09:23 +0000 (22:09 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Fri, 29 Jan 2021 03:09:23 +0000 (22:09 -0500)
Sets backlight brightness and sends notification. Depends:
brightnessctl

brightness-set [new file with mode: 0755]

diff --git a/brightness-set b/brightness-set
new file mode 100755 (executable)
index 0000000..da07a7a
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+# Show a notification and change screen brightness
+
+brightnessctl set ${1}
+notify-send "Brightness" "$(brightnessctl | grep % | tail -c +22)" -t 1000