[AUTOCONFIG] Add rofi configuration
This commit is contained in:
parent
f705defae3
commit
e062b96f09
13 changed files with 1131 additions and 370 deletions
14
scripts/tools/rofi/install.sh
Executable file
14
scripts/tools/rofi/install.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue