shithub: notif


branches: front

Clone

clone: git://shithub.us/sirjofri/notif gits://shithub.us/sirjofri/notif
push: hjgit://shithub.us/sirjofri/notif
patches to: sirjofri@sirjofri.de

Last commit

1266832a – sirjofri <sirjofri@sirjofri.de> authored on 2026/03/24 06:16
adds notify script

About

notif

usage: notif


send plumb messages to notify channel:

- attributes: title, message, button, cmd
- optional data (optional as in, if cmd attribute set, data is ignored)
- title, message, button are optional
- if no cmd attribute is set, data must be a valid packed plumb message!

displays a card:

TITLE
message
[button]

left click on card: discards/removes the card
right click on card: sends cmd or data to the plumber, then removes the card.


NOTIFY SCRIPT

The notify rc script is a small wrapper that makes live easier for scripting.
It must be manually copied to your target location if you want to use it.

Flags:

-t title: The title for the notification
-m message: The message for the notification
-b button: The button for the notification
-c command: The command of the notification (see above)
-p data: The plumb data for the notification
-i input: Expect a plumbmsg on the pipe

There are three modi that can be used:

- plumb a string as data:
  notify -t Woah -m 'click the button to read the man page' -p 'plumb(1)'
- plumb a plumb message:
  echo -n 'plumb(1)' | plumb -p /fd/1 -i | notify -t Woah -i
- plumb a command:
  notify -t Woah -c 'my command goes here'


BUGS

sure. send patches.