Allow for nonexistence of files
This commit is contained in:
parent
e57c59ad27
commit
eb5ac23bce
2 changed files with 6 additions and 5 deletions
|
@ -7,12 +7,12 @@ csub=$(sed '2!d' ~/.cache/wal/colors)
|
|||
mkdir -p ~/.config/tint2
|
||||
cp ~/.linux/dots/tint2rctemplate ~/.config/tint2/plac
|
||||
sed -i "s/TEMPLATE/${csub}/g" ~/.config/tint2/plac
|
||||
rm ~/.config/tint2/tint2rc
|
||||
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 ~/.conkyrc
|
||||
rm -f ~/.conkyrc
|
||||
mv ~/conkyplac ~/.conkyrc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue