From bdc33d63e675254ce7e8d9ef0d6d3416417c3cf7 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Tue, 16 Jan 2024 12:55:19 -0300 Subject: [PATCH] new colorscheme changer script fully made by me yay!! --- desktop/configs/scripts/change-colorscheme.sh | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 desktop/configs/scripts/change-colorscheme.sh diff --git a/desktop/configs/scripts/change-colorscheme.sh b/desktop/configs/scripts/change-colorscheme.sh new file mode 100755 index 0000000..2bb8f6b --- /dev/null +++ b/desktop/configs/scripts/change-colorscheme.sh @@ -0,0 +1,42 @@ +#!/bin/bash +current_theme=$(readlink ~/.config/tmux/theme.conf) + +if [[ $current_theme == *tmux-white.conf ]]; then + # change wallpaper + swww img -o DP-3 ~/pics/wallpapers/a\ carnival.jpg + swww img -o HDMI-A-1 ~/pics/wallpapers/the\ true\ old\ god.jpg + + # change tmux theme and reload + ln -sf ~/.config/tmux/tmux-red.conf ~/.config/tmux/theme.conf + tmux source-file ~/.config/tmux/tmux.conf + + # change wezterm theme + sed -i 's/Solarized Light (Gogh)/Fahrenheit/g' ~/.config/wezterm/wezterm.lua + + # change nvim theme + sed -i 's/zed = true/zed = false/g' ~/.config/nvim/lua/custom/plugins/colorscheme.lua + sed -i 's/-- h/h/g' ~/.config/nvim/lua/custom/plugins/bufferline.lua + + # change neofetch pic (yes lmao) + sed -i 's/rh.jpg/red.jpg/g' ~/.config/neofetch/config.conf + sed -i '0,/cl11/{s/cl11/cl3/}' ~/.config/neofetch/config.conf +else + # change wpp + swww img -o DP-3 ~/pics/wallpapers/HOLY.png + swww img -o HDMI-A-1 ~/pics/wallpapers/okw\ tf.jpg + + # change tmux theme and reload + ln -sf ~/.config/tmux/tmux-white.conf ~/.config/tmux/theme.conf + tmux source-file ~/.config/tmux/tmux.conf + + # change wezterm theme + sed -i 's/Fahrenheit/Solarized Light (Gogh)/g' ~/.config/wezterm/wezterm.lua + + # change nvim theme + sed -i 's/zed = false/zed = true/g' ~/.config/nvim/lua/custom/plugins/colorscheme.lua + sed -i 's/highlights/-- highlights/g' ~/.config/nvim/lua/custom/plugins/bufferline.lua + + # neofetch + sed -i 's/red.jpg/rh.jpg/g' ~/.config/neofetch/config.conf + sed -i '0,/cl3/{s/cl3/cl11/}' ~/.config/neofetch/config.conf +fi