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
480 B
Bash

#!/bin/bash
# Get the variable
csub=$(sed '2!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