Change keyboard backlight depending on theme

This commit is contained in:
Mylloon 2023-11-25 20:20:56 +01:00
parent 48918085d3
commit eabb3d5cf6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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" ;;