Add terminal light theme
This commit is contained in:
parent
2d46d36bc0
commit
a35bdfc3b0
1 changed files with 25 additions and 19 deletions
44
arch.sh
44
arch.sh
|
@ -95,23 +95,31 @@ main() {
|
||||||
# Add aliases
|
# Add aliases
|
||||||
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
|
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
|
||||||
|
|
||||||
# Default theme in Gnome Terminal
|
# Default themes in Gnome Terminal
|
||||||
local profil
|
local GT_default GT_light
|
||||||
profil=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
|
GT_default=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ use-custom-command true
|
GT_light=$(uuidgen)
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ custom-command "fish"
|
gsettings set org.gnome.Terminal.ProfilesList list "['${GT_default}', '${GT_light}']"
|
||||||
# Default colors
|
GT_profiles=("${GT_default}" "${GT_light}")
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ use-theme-colors "false"
|
for profile in "${GT_profiles[@]}"
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ foreground-color "rgb(211,208,200)"
|
do
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ background-color "rgb(45,45,45)"
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ use-custom-command true
|
||||||
# Size and font
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ custom-command "fish"
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ use-system-font false
|
# Default colors
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ default-size-columns 105
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ use-theme-colors "false"
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ default-size-rows 25
|
# Size and font
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ font "MesloLGM Nerd Font 12"
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ use-system-font false
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil}"/ use-system-font false
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ default-size-columns 105
|
||||||
# Duplicate the default profile to create a light theme
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ default-size-rows 25
|
||||||
# TODO
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ font "MesloLGM Nerd Font 12"
|
||||||
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profile}"/ use-system-font false
|
||||||
|
done
|
||||||
|
# Dark theme
|
||||||
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ 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}"/ background-color "rgb(45,45,45)"
|
||||||
|
# Light theme
|
||||||
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_light}"/ visible-name 'Light'
|
||||||
|
|
||||||
# Keybinds
|
# Keybinds
|
||||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ close-tab "<Control>w"
|
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ close-tab "<Control>w"
|
||||||
|
@ -267,8 +275,6 @@ main() {
|
||||||
gsettings set org.gnome.desktop.peripherals.mouse speed -0.6 # mouse speed
|
gsettings set org.gnome.desktop.peripherals.mouse speed -0.6 # mouse speed
|
||||||
gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.gtk-variants enabled true # enable GTK theme to change
|
gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.gtk-variants enabled true # enable GTK theme to change
|
||||||
gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.commands sunset "set org.gnome.desktop.wm.preferences theme Dracula" # change gtk theme to dark at sunset
|
gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.commands sunset "set org.gnome.desktop.wm.preferences theme Dracula" # change gtk theme to dark at sunset
|
||||||
# gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.shell-variants enabled true # change shell theme to dark at sunset
|
|
||||||
# gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.shell-variants day "TODO" # change shell theme at sunrise
|
|
||||||
|
|
||||||
# Default app Nautilus
|
# Default app Nautilus
|
||||||
sed -i "s/inode\/directory=nautilus.desktop/inode\/directory=org.gnome.Nautilus.desktop/g" "$HOME"/.config/mimeapps.list
|
sed -i "s/inode\/directory=nautilus.desktop/inode\/directory=org.gnome.Nautilus.desktop/g" "$HOME"/.config/mimeapps.list
|
||||||
|
|
Loading…
Reference in a new issue