1

notify-send from acpi scripts

view story
linux-howto

https://bbs.archlinux.org – Another way of doing this (slightly more generic than Stebalien's method):notify() { # Usage: notify "title" "description" [options to pass to send-notify" title="$1" body="$2" shift 2 opts="$*" # Send messages to users listed by the 'users' command, but only once # Maybe sh has a better way of doing set operations, but this works: SENT="" for USER in $(users); do case $SENT in "$USER") ;; *" $USER") ;; "$U (HowTos)