Add tint2rc + script for basing border colours on pywal

This commit is contained in:
trémeur 2019-12-07 16:09:00 +00:00
parent f9b47e21a0
commit c2497f8152
4 changed files with 224 additions and 13 deletions

18
scripts/bordergen.sh Executable file
View file

@ -0,0 +1,18 @@
#!/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 ~/.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 ~/.conkyrc
mv ~/conkyplac ~/.conkyrc

View file

@ -6,7 +6,7 @@
mv ~/mdddots ~/.linux
# Get rid of existing files
rm ~/.zshrc ~/.gitconfig ~/.XCompose ~/.conkyrc
rm ~/.zshrc ~/.gitconfig ~/.XCompose
rm ~/.config/cmus/rc
rm ~/.oh-my-zsh/custom/aliases
@ -15,5 +15,4 @@ ln -s ~/.linux/dots/.zshrc ~
ln -s ~/.linux/dots/aliases ~/.oh-my-zsh/custom
ln -s ~/.linux/dots/.gitconfig ~
ln -s ~/.linux/dots/.XCompose ~
ln -s ~/.linux/dots/.conkyrc ~
ln -s ~/.linux/dots/cmus/rc ~/.config/cmus