modify setup to locally set $XDG_CONFIG_HOME env var if it is not set

This commit is contained in:
ksyasuda
2021-11-02 10:09:02 -07:00
parent 2c0921842e
commit 404beb96c0
3 changed files with 73 additions and 76 deletions

View File

@@ -1,15 +1,18 @@
#!/usr/bin/env bash
[ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config"
CMD=/usr/local/bin/ani-cli
DEFAULT="$HOME/Videos/sauce/"
CFG_DIR="$XDG_CONFIG_HOME/ani-cli"
echo "CONFIG DIR: $CFG_DIR"
# not a wrapper around the ani-cli-rofi
options="1. Stream|2. Download|3. Continue|4. Quit"
choice=$(echo "${options[@]}" | rofi -dmenu -sep '|' \
-config "$CFG_DIR/meh.rasi" -l 4 -i -p "Enter choice:")
choice=$(echo "${options[@]}" | rofi -dmenu -sep '|' -config "$CFG_DIR/meh.rasi" -l 4 -i -p "Enter choice:")
[ "$choice" == "4. Quit" ] && (
echo 'Quitting...'