[PICOM] Add config
This commit is contained in:
parent
358a68d488
commit
96ebf19a7e
4 changed files with 197 additions and 0 deletions
14
scripts/tools/picom/install.sh
Executable file
14
scripts/tools/picom/install.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
source ./scripts/common.sh
|
||||
|
||||
if [[ "$WITH_PICOM_CONFIG" == 'yes' || "$WITH_PICOM_CONFIG" == 'force' ]]; then
|
||||
if [[ -d "$HOME/.config/picom" && "$WITH_PICOM_CONFIG" == 'force' ]]; then
|
||||
rm -rf "$HOME/.config/picom"
|
||||
echo '[INFO] Picom config removed | Forced by environment variable'
|
||||
fi
|
||||
if [[ ! -d "$HOME/.config/picom" ]]; then
|
||||
ln -s "$CWD/configs/picom" "$HOME/.config/picom"
|
||||
echo "[INFO] Picom config linked with symbolic link : $CWD/configs/picom -> $HOME/.config/picom"
|
||||
else
|
||||
echo '[INFO] Picom config already linked'
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue