1
0
Fork 0

[PICOM] Add config

This commit is contained in:
Florian RICHER 2022-01-21 22:15:58 +01:00
parent 358a68d488
commit 96ebf19a7e
4 changed files with 197 additions and 0 deletions

14
scripts/tools/picom/install.sh Executable file
View 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