darkman: recognise local wallpapers

This commit is contained in:
Aminda Suomalainen 2024-07-20 07:27:54 +03:00
parent f64f5727d0
commit 38eeaaa4ce
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,9 @@ fi
export DISTROID=$(lsb_release -si)
export DISTROREL=$(lsb_release -sr)
if [ "$DISTROID" == "Fedora" ]; then
if [ -f ~/.wallpaper.dark ]; then
export WALLPAPER_PATH="$HOME/.wallpaper.dark"
elif [ "$DISTROID" == "Fedora" ]; then
export WALLPAPER_PATH="/usr/share/wallpapers/F$DISTROREL/contents/images_dark/3840x2160.png"
fi

View File

@ -10,7 +10,9 @@ fi
export DISTROID=$(lsb_release -si)
export DISTROREL=$(lsb_release -sr)
if [ "$DISTROID" == "Fedora" ]; then
if [ -f ~/.wallpaper.light ]; then
export WALLPAPER_PATH="$HOME/.wallpaper.light"
elif [ "$DISTROID" == "Fedora" ]; then
export WALLPAPER_PATH="/usr/share/wallpapers/F$DISTROREL/contents/images/3840x2160.png"
fi