theme stuff
This commit is contained in:
parent
63dc6def2a
commit
6a2a2689f2
6 changed files with 22 additions and 6 deletions
8
.config/turn-dark.sh → .config/turn_dark.sh
Normal file → Executable file
8
.config/turn-dark.sh → .config/turn_dark.sh
Normal file → Executable 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
8
.config/turn-light.sh → .config/turn_light.sh
Normal file → Executable 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 "$@"
|
|
@ -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
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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."
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue