-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolorscheme.sh
executable file
·33 lines (23 loc) · 1.18 KB
/
colorscheme.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# PLEASE READ AND PUT THE CORRECT THEME FILES YOU NEED
CURRENTTHEME=$1
NEWTHEME=$2
echo "
NOTE: This script assumes that you're using the default Woof OS configuration
files, and that you have downloaded your preferred colorscheme to the correct
directories.
=============================================================================
"
sed -i "s/$CURRENTTHEME/$NEWTHEME/g" ~/.config/alacritty/alacritty.toml
sed -i "s/$CURRENTTHEME/$NEWTHEME/g" ~/.config/rofi/config.rasi
sed -i "s/\".*$CURRENTTHEME.*\"/\"$NEWTHEME\"/g" ~/.config/nvim/after/plugin/colors.lua
mv ~/.config/dunst/dunstrc ~/.config/dunst/dunstrc.bak
cp ~/.config/dunst/$NEWTHEME ~/.config/dunst/dunstrc
mv ~/.config/qtile/config/colors.json ~/.config/qtile/config/colors.json.bak
cp ~/.config/qtile/config/$NEWTHEME.json ~/.config/qtile/config/colors.json
[ ! -d ~/.config/starship ] && mkdir -p ~/.config/starship
mv ~/.config/starship.toml ~/.config/starship/starship.toml.bak
cp ~/.config/starship/$NEWTHEME.toml ~/.config/starship.toml
mv ~/.config/zathura/zathurarc ~/.config/zathura/zathurarc.bak
cp ~/.config/zathura/$NEWTHEME ~/.config/zathura/zathurarc
echo "Colorscheme changed from $CURRENTTHEME to $NEWTHEME."