shell-things/local/share/dark-mode.d/00-do-not-repeat-yourself.sh

14 lines
382 B
Bash
Raw Normal View History

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)
2024-07-20 07:01:17 +02:00
export DARKMANGET=$(darkman get)
printf "Distribution: $DISTROID\nRelease: $DISTROREL\nMode: $DARKMANGET\n"