added bing wallpaper
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# bing-wallpaper-toggle: Bing-Tages-Wallpaper an/aus schalten (User-Timer).
|
||||
# Fuer den Noctalia-Launcher (.desktop-Datei) - kein Terminal noetig.
|
||||
set -euo pipefail
|
||||
|
||||
NOTIFY="/usr/bin/notify-send"
|
||||
|
||||
if systemctl --user is-enabled --quiet bing-wallpaper.timer; then
|
||||
systemctl --user disable --now bing-wallpaper.timer
|
||||
msg="Bing-Wallpaper ausgeschaltet"
|
||||
else
|
||||
systemctl --user enable --now bing-wallpaper.timer
|
||||
msg="Bing-Wallpaper eingeschaltet (taeglich 06:00 Uhr)"
|
||||
fi
|
||||
|
||||
if command -v "$NOTIFY" >/dev/null; then
|
||||
"$NOTIFY" "Bing-Wallpaper" "$msg" --app-name="Bing-Wallpaper" --icon=preferences-desktop-wallpaper || true
|
||||
else
|
||||
echo "$msg"
|
||||
fi
|
||||
Reference in New Issue
Block a user