darkman: attempt to decrease amount of repeating myself

This commit is contained in:
Aminda Suomalainen 2024-07-20 07:49:15 +03:00
parent 80119c9059
commit d41e225bf0
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
5 changed files with 13 additions and 18 deletions

View File

@ -0,0 +1,9 @@
if ! hash lsb_release 2> /dev/null; then
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
echo $ERRORMESSAGE
#notify-send $ERRORMESSAGE
exit 0
fi
export DISTROID=$(lsb_release -si)
export DISTROREL=$(lsb_release -sr)

View File

@ -1,14 +1,6 @@
#!/usr/bin/env bash
if ! hash lsb_release 2> /dev/null; then
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
echo $ERRORMESSAGE
notify-send $ERRORMESSAGE
exit 1
fi
export DISTROID=$(lsb_release -si)
export DISTROREL=$(lsb_release -sr)
. 00-do-not-repeat-yourself.sh
if [ -f ~/.wallpaper.dark ]; then
export WALLPAPER_PATH="$HOME/.wallpaper.dark"

1
local/share/light-mode.d/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
00-do-not-repeat-yourself.sh

View File

@ -0,0 +1 @@
../dark-mode.d/00-do-not-repeat-yourself.sh

View File

@ -1,14 +1,6 @@
#!/usr/bin/env bash
if ! hash lsb_release 2> /dev/null; then
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
echo $ERRORMESSAGE
notify-send $ERRORMESSAGE
exit 1
fi
export DISTROID=$(lsb_release -si)
export DISTROREL=$(lsb_release -sr)
. 00-do-not-repeat-yourself.sh
if [ -f ~/.wallpaper.light ]; then
export WALLPAPER_PATH="$HOME/.wallpaper.light"