disable keyboard backlight

This commit is contained in:
Mylloon 2023-12-06 19:45:42 +01:00
parent 3e58c57872
commit fff5c1b747
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -39,10 +39,10 @@ main() {
sed -i "s/bubblegum/monokai/g" "$HOME"/.config/micro/settings.json
# Keyboard backlight
gdbus call --session \
--dest org.gnome.SettingsDaemon.Power \
--object-path /org/gnome/SettingsDaemon/Power \
--method org.gnome.SettingsDaemon.Power.Keyboard.StepUp
# gdbus call --session \
# --dest org.gnome.SettingsDaemon.Power \
# --object-path /org/gnome/SettingsDaemon/Power \
# --method org.gnome.SettingsDaemon.Power.Keyboard.StepUp
;;
@ -62,14 +62,13 @@ main() {
sed -i "s/monokai/bubblegum/g" "$HOME"/.config/micro/settings.json
# Keyboard backlight
for _ in $(seq 2) # doing it 2 times to be sure we really turn off the lights
do
gdbus call --session \
--dest org.gnome.SettingsDaemon.Power \
--object-path /org/gnome/SettingsDaemon/Power \
--method org.gnome.SettingsDaemon.Power.Keyboard.StepDown
sleep 0.3
done
# for _ in $(seq 2) # doing it 2 times to be sure we really turn off the lights
# do
# gdbus call --session \
# --dest org.gnome.SettingsDaemon.Power \
# --object-path /org/gnome/SettingsDaemon/Power \
# --method org.gnome.SettingsDaemon.Power.Keyboard.StepDown
# done
;;