theme stuff

This commit is contained in:
Mylloon 2025-04-29 12:10:28 +02:00
parent 63dc6def2a
commit 6a2a2689f2
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
6 changed files with 22 additions and 6 deletions

8
.config/turn-dark.sh → .config/turn_dark.sh Normal file → Executable file
View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash
# KDE specific
set -o errexit # crash the script when a command crash
set -o pipefail # same as above for piped command
set -o nounset # crash when a variable doesnt exist
@ -12,7 +14,11 @@ fi
cd "$(dirname "$0")" # change script directory
main() {
"$HOME"/.config/update_theme.sh dark
# Shell theme
fish -c "update-theme dark"
# Konsole
# todo...
}
main "$@"

8
.config/turn-light.sh → .config/turn_light.sh Normal file → Executable file
View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash
# KDE specific
set -o errexit # crash the script when a command crash
set -o pipefail # same as above for piped command
set -o nounset # crash when a variable doesnt exist
@ -12,7 +14,11 @@ fi
cd "$(dirname "$0")" # change script directory
main() {
"$HOME"/.config/update_theme.sh light
# Shell theme
fish -c "update-theme light"
# Konsole
# todo...
}
main "$@"

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash
# Gnome specific
set -o errexit # crash the script when a command crash
set -o pipefail # same as above for piped command
set -o nounset # crash when a variable doesnt exist

View file

@ -185,8 +185,8 @@ endif
# Plasma desktop specific
sync-plasma:
# .config
@$(WGET) $(REPO_SRC)/.config/turn-light.sh -O $(HOME)/.config/turn-light.sh
@$(WGET) $(REPO_SRC)/.config/turn-dark.sh -O $(HOME)/.config/turn-dark.sh
@$(WGET) $(REPO_SRC)/.config/turn_light.sh -O $(HOME)/.config/turn_light.sh
@$(WGET) $(REPO_SRC)/.config/turn_dark.sh -O $(HOME)/.config/turn_dark.sh
@echo "KDE Theme script synced!"
@echo

View file

@ -83,7 +83,7 @@ function main {
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ font "MesloLGM Nerd Font 12"
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ use-system-font false
# Theme (use dark for the purpose of the installation since we need to choose one, doesn't really matter)
bash "$HOME"/.config/update_theme.sh dark
bash "$HOME"/.config/update_theme.sh sunset
# Keybinds
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ close-tab "<Control>w"

View file

@ -46,8 +46,10 @@ function main {
# === Theme ==
wget -q ${repo}/.config/turn_dark.sh -O "$HOME"/.config/turn_dark.sh
wget -q ${repo}/.config/turn_light.sh -O "$HOME"/.config/turn_light.sh
# use dark for the purpose of the installation since we need to choose one, doesn't really matter
bash "$HOME"/.config/update_theme.sh dark
bash "$HOME"/.config/turn-dark.sh
echo -e "\n\nInstallation terminée.\nIl faut redémarrer l'ordinateur."
}