1
0
Fork 0

[AUTOCONFIG] Add rofi configuration

This commit is contained in:
Florian RICHER 2022-01-04 22:49:42 +01:00
parent f705defae3
commit e062b96f09
13 changed files with 1131 additions and 370 deletions

14
scripts/tools/rofi/install.sh Executable file
View file

@ -0,0 +1,14 @@
source ./scripts/common.sh
if [[ "$WITH_ROFI_CONFIG" == 'yes' || "$WITH_ROFI_CONFIG" == 'force' ]]; then
if [[ -d "$HOME/.config/rofi" && "$WITH_ROFI_CONFIG" == 'force' ]]; then
rm -rf "$HOME/.config/rofi"
echo '[INFO] Rofi config removed | Forced by environment variable'
fi
if [[ ! -d "$HOME/.config/rofi" ]]; then
ln -s "$CWD/configs/rofi" "$HOME/.config/rofi"
echo "[INFO] Rofi config linked with symbolic link : $CWD/configs/rofi -> $HOME/.config/rofi"
else
echo '[INFO] Rofi config already linked'
fi
fi