use busctl ?

This commit is contained in:
Mylloon 2023-12-29 17:36:10 +01:00
parent 8e19ad8f22
commit bf3d6e22ba
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -36,10 +36,9 @@ 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 \ busctl call --system org.freedesktop.UPower \
# --dest org.gnome.SettingsDaemon.Power \ /org/freedesktop/UPower/KbdBacklight \
# --object-path /org/gnome/SettingsDaemon/Power \ org.freedesktop.UPower.KbdBacklight SetBrightness 'i' 1
# --method org.gnome.SettingsDaemon.Power.Keyboard.StepUp
;; ;;
@ -59,13 +58,9 @@ 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 busctl call --system org.freedesktop.UPower \
# do /org/freedesktop/UPower/KbdBacklight \
# gdbus call --session \ org.freedesktop.UPower.KbdBacklight SetBrightness 'i' 0
# --dest org.gnome.SettingsDaemon.Power \
# --object-path /org/gnome/SettingsDaemon/Power \
# --method org.gnome.SettingsDaemon.Power.Keyboard.StepDown
# done
;; ;;