You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
720 B
Bash
25 lines
720 B
Bash
#!/bin/bash
|
|
|
|
# Get the variable
|
|
csub=$(sed '6!d' ~/.cache/wal/colors)
|
|
|
|
# Create new tint2rc
|
|
mkdir -p ~/.config/tint2
|
|
cp ~/.linux/dots/tint2rctemplate ~/.config/tint2/plac
|
|
sed -i "s/TEMPLATE/${csub}/g" ~/.config/tint2/plac
|
|
rm -f ~/.config/tint2/tint2rc
|
|
mv ~/.config/tint2/plac ~/.config/tint2/tint2rc
|
|
killall -SIGUSR1 tint2
|
|
|
|
# Create new .conkyrc
|
|
cp ~/.linux/dots/conkytemplate ~/conkyplac
|
|
sed -i "s/COLOURTEMPLATE/${csub}/g" ~/conkyplac
|
|
rm -f ~/.conkyrc
|
|
mv ~/conkyplac ~/.conkyrc
|
|
|
|
# Create new gtk css
|
|
cp ~/.linux/dots/gtk/3/gtktemplate.css ~/.config/gtk-3.0/gtkplac.css
|
|
sed -i "s/COLOUR/${csub}/g" ~/.config/gtk-3.0/gtkplac.css
|
|
rm -f ~/.config/gtk-3.0/gtk.css
|
|
mv ~/.config/gtk-3.0/gtkplac.css ~/.config/gtk-3.0/gtk.css
|