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