Use XDG_* variables for directories and /home/sebtm* only as fallback (ported from #184) (#244)

This commit is contained in:
Basti 2021-06-20 23:15:43 +02:00 committed by Sebastian Sellmeier
parent 62b8002248
commit 95bd5767ae
No known key found for this signature in database
GPG key ID: 51E2BE0CCC826F98

View file

@ -44,14 +44,14 @@ init_config () {
dunst_paused_state="$(dunstctl is-paused)" dunst_paused_state="$(dunstctl is-paused)"
# read user config # read user config
USER_CONF="$HOME/.config/betterlockscreenrc" USER_CONF="${XDG_CONFIG_HOME:-$HOME/.config}/betterlockscreenrc"
if [ -e "$USER_CONF" ]; then if [ -e "$USER_CONF" ]; then
# shellcheck source=/dev/null # shellcheck source=/dev/null
source "$USER_CONF" source "$USER_CONF"
fi fi
# paths # paths
CACHE_DIR="$HOME/.cache/i3lock" CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/betterlockscreen"
CUR_DIR="$CACHE_DIR/current" CUR_DIR="$CACHE_DIR/current"
# wallpaper # wallpaper