Files
dotfiles/dot_local/share/darkman/executable_desktop-notification.sh
Joel Beckmeyer e9cd7c268a add darkman
2026-05-18 21:23:05 -04:00

13 lines
378 B
Bash

#!/usr/bin/env sh
# trigger a small, passive popup dialog to inform the user about darkman's activity
# reference https://wiki.archlinux.org/title/Desktop_notifications#Usage_in_programming
case "$1" in
dark) ICON=weather-clear-night ;;
light) ICON=weather-clear ;;
default) exit 1 ;;
esac
notify-send --app-name="darkman" --urgency=low --icon="$ICON" "switching to $1 mode"