disable keyboard backlight
This commit is contained in:
parent
3e58c57872
commit
fff5c1b747
1 changed files with 11 additions and 12 deletions
|
@ -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
|
||||
;;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue