xnotify: popup a notification on your screen - Programming On Unix
Users browsing this thread: 6 Guest(s)
|
|||
Done!
I just updated xnotify to the new version that support tags and string output. Tags works like this: You specify a tag with the TAG: option. Code: printf 'TAG:music\tAlbum\tSong title\n' > $XNOTIFY_FIFO Thus you can use a volume or album/song notification that will never repeat. String output work like this: First you have to invoke xnotify with the -b NUMBER button where NUMBER is a number from 1 to 5 specifying the mouse button that will trigger the string output, and pipe the xnotify stdout to a script you made. The -b option can be omitted, in which case the button will be button 3 (the right button). Code: xnotify <$XNOTIFY_FIFO 3<>$XNOTIFY_FIFO | myscript & Code: printf 'CMD:next\tAlbum\tSong title\n' > $XNOTIFY_FIFO |
|||