1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

scripts: updated to cleaner logic for global variables

This commit is contained in:
2025-02-17 04:19:49 +01:00
parent 7322a068c2
commit c7e33b6162
7 changed files with 17 additions and 20 deletions

View File

@@ -2,11 +2,8 @@
# Adapted from a script by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ -z "$WALLPAPER_DESKTOP" ] && wall_desk="$XDG_DATA_HOME/bg" || wall_desk="$WALLPAPER_DESKTOP"
[ -z "$WALLPAPER_LOCK" ] && wall_lock="$XDG_DATA_HOME/lock" || wall_lock="$WALLPAPER_LOCK"
echo $wall_desk
echo $wall_lock
wall_desk=${WALLPAPER_DESKTOP:-$XDG_DATA_HOME/bg}
wall_lock=${WALLPAPER_LOCK:-$XDG_DATA_HOME/lock}
case "$1" in
desktop) trueloc="$(readlink -f "$2")" &&