summaryrefslogtreecommitdiff
path: root/bl-save
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-08-30 01:10:29 -0500
committerzachir <zachir@librem.one>2025-08-30 01:10:29 -0500
commitb3954287e7d50d744da3221677c89e108cff36c4 (patch)
tree2771dac57093b8768d3628cef2694e4310089a05 /bl-save
parentf28d694879239d5d9c319185a278236d317a49b6 (diff)
parent73d7053762e737ac7176daa501fad40936a38813 (diff)
Merge branch 'master' of git.zachir.xyz:zachir/scripts
Diffstat (limited to 'bl-save')
-rwxr-xr-xbl-save8
1 files changed, 8 insertions, 0 deletions
diff --git a/bl-save b/bl-save
new file mode 100755
index 0000000..2262892
--- /dev/null
+++ b/bl-save
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+LIST="$(brightnessctl -l)"
+SCREEN="$(echo "$LIST" | grep "class 'backlight'" | cut -d"'" -f2)"
+KEYBOARD="$(echo "$LIST" | grep 'kbd_backlight' | cut -d"'" -f2)"
+
+brightnessctl -sd "${SCREEN}"
+brightnessctl -sd "${KEYBOARD}"