mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-07-26 16:37:20 +02:00
22 lines
591 B
Bash
Executable File
22 lines
591 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
if [ -f /etc/os-release ]; then
|
|
. /etc/os-release
|
|
fi
|
|
|
|
export DARKMANGET="$(darkman get)"
|
|
|
|
printf "Distribution: $ID\nRelease: $VERSION_ID\nMode: $DARKMANGET\n"
|
|
|
|
if [[ "$DARKMANGET" -eq "light" ]]; then
|
|
notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "Teema: $DARKMANGET"
|
|
elif [[ "$DARKMANGET" -eq "dark" ]]; then
|
|
notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Teema: $DARKMANGET"
|
|
else
|
|
ERRORMESSAGE="Something went wrong?"
|
|
echo "$ERRORMESSAGE"
|
|
notify-send --app-name="darkman" --icon=error "$ERRORMESSAGE"
|
|
fi
|