use busctl ?
This commit is contained in:
parent
8e19ad8f22
commit
bf3d6e22ba
1 changed files with 6 additions and 11 deletions
|
@ -36,10 +36,9 @@ 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
|
||||
busctl call --system org.freedesktop.UPower \
|
||||
/org/freedesktop/UPower/KbdBacklight \
|
||||
org.freedesktop.UPower.KbdBacklight SetBrightness 'i' 1
|
||||
;;
|
||||
|
||||
|
||||
|
@ -59,13 +58,9 @@ 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
|
||||
# done
|
||||
busctl call --system org.freedesktop.UPower \
|
||||
/org/freedesktop/UPower/KbdBacklight \
|
||||
org.freedesktop.UPower.KbdBacklight SetBrightness 'i' 0
|
||||
;;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue