From bf3d6e22ba1f961f5ee095793b431cd67c4c0cdd Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 29 Dec 2023 17:36:10 +0100 Subject: [PATCH] use busctl ? --- .config/update_theme.sh | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.config/update_theme.sh b/.config/update_theme.sh index b382a05..4c0bc17 100755 --- a/.config/update_theme.sh +++ b/.config/update_theme.sh @@ -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 ;;