dots/home/private_dot_local/private_share/light-mode.d/executable_desktop-notification.sh
2025-01-01 11:23:15 +08:00

10 lines
393 B
Bash

#!/usr/bin/env bash
# add a detection to prevent exec scripts on every login
#if [[ "$(darkman get)" =~ "dark" ]]; then
# 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
notify-send --app-name="darkman" --urgency=low --icon=weather-clear "switching to light mode"
#fi