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.
19 lines
566 B
Bash
19 lines
566 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 -q tint2
|
|
|
|
# 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
|