force light theme of gnome on light theme
better readability of the file correctly turn of keyboard backlight
This commit is contained in:
parent
a7be7f9cc4
commit
327e990e39
1 changed files with 53 additions and 24 deletions
|
@ -19,36 +19,65 @@ main() {
|
||||||
GT_default=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
|
GT_default=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
|
||||||
case $1 in
|
case $1 in
|
||||||
"sunset" ) # Go to dark mode
|
"sunset" ) # Go to dark mode
|
||||||
# Global Gnome theme
|
# Dracula theme
|
||||||
#gsettings set org.gnome.desktop.interface color-scheme prefer-dark
|
set org.gnome.desktop.wm.preferences theme 'Dracula'
|
||||||
# Set the Dracula theme
|
|
||||||
set org.gnome.desktop.wm.preferences theme Dracula
|
# Terminal profile
|
||||||
# Set the Terminal profile
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ \
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ visible-name "Dark"
|
visible-name "Dark"
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ foreground-color "rgb(211,208,200)"
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ \
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ background-color "rgb(45,45,45)"
|
foreground-color "rgb(211,208,200)"
|
||||||
# Set the fish theme
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ \
|
||||||
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
|
background-color "rgb(45,45,45)"
|
||||||
|
|
||||||
|
# Fish theme
|
||||||
|
fish -c "fish_config theme choose 'Base16 Eighties' && \
|
||||||
|
yes | fish_config theme save"
|
||||||
fish -c "set fish_color_comment 5c6773" # custom comment color
|
fish -c "set fish_color_comment 5c6773" # custom comment color
|
||||||
|
|
||||||
|
# Micro editor
|
||||||
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 --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Keyboard.StepUp
|
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
|
"sunrise" ) # Go to light mode
|
||||||
# Global Gnome theme
|
# Gnome theme
|
||||||
#gsettings set org.gnome.desktop.interface color-scheme prefer-light
|
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
|
||||||
# Set the Terminal profile
|
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ visible-name "Light"
|
# Terminal profile
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ foreground-color "rgb(23,20,33)"
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ \
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ background-color "rgb(253,246,227)"
|
visible-name "Light"
|
||||||
# Set the fish theme
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ \
|
||||||
|
foreground-color "rgb(23,20,33)"
|
||||||
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ \
|
||||||
|
background-color "rgb(253,246,227)"
|
||||||
|
|
||||||
|
# Fish theme
|
||||||
fish -c "fish_config theme choose 'Solarized Light' && yes | fish_config theme save"
|
fish -c "fish_config theme choose 'Solarized Light' && yes | fish_config theme save"
|
||||||
|
|
||||||
|
# Micro editor
|
||||||
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
|
||||||
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Keyboard.StepDown
|
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
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
* )
|
* )
|
||||||
echo "Can't interpret given argument" ;;
|
echo "Can't interpret given argument"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue