add check for existing folder ~/.config/i3blocks and move it to *.bak before cloning
This commit is contained in:
parent
1a12464ebd
commit
a816d170ea
@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Installing i3blocks..."
|
echo "Installing i3blocks..."
|
||||||
|
[[ -f "~/.config/i3blocks" ]] && mv ~/.config/i3blocks{,.bak}
|
||||||
git clone https://will.kein.hk/git/koksnuss/simple-i3blocks.git ~/.config/i3blocks
|
git clone https://will.kein.hk/git/koksnuss/simple-i3blocks.git ~/.config/i3blocks
|
||||||
cd ~/.config/i3blocks
|
cd ~/.config/i3blocks/modules
|
||||||
chmod u+x audio backlight battery cpu datetime ip mic ram storage
|
chmod u+x audio backlight battery cpu datetime ip mic ram storage
|
||||||
echo "Finished, please reload i3. Normally you can do this with the shortcut MOD+SHIFT+R""
|
echo "Finished, please reload i3. Normally you can do this with the shortcut MOD+SHIFT+R""
|
||||||
|
Reference in New Issue
Block a user