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

9 lines
399 B
Bash

#!/usr/bin/env bash
# add a detection to prevent exec scripts on every login
#if [[ "$(darkman get)" =~ "light" ]] ; 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-night "switching to dark mode"
#fi