From eabb3d5cf6f38a04b0fa2c863f2aa29cb91eba21 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 25 Nov 2023 20:20:56 +0100 Subject: [PATCH] Change keyboard backlight depending on theme --- .config/update_theme.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/update_theme.sh b/.config/update_theme.sh index ee0fe41..b9927ef 100755 --- a/.config/update_theme.sh +++ b/.config/update_theme.sh @@ -31,6 +31,8 @@ main() { fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save" fish -c "set fish_color_comment 5c6773" # custom comment color 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 ;; "sunrise" ) # Go to light mode # Global Gnome theme @@ -42,6 +44,8 @@ main() { # Set the fish theme fish -c "fish_config theme choose 'Solarized Light' && yes | fish_config theme save" sed -i "s/monokai/bubblegum/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.StepDown ;; * ) echo "Can't interpret given argument" ;;