tmisu

Notification to stdout daemon
git clone https://git.inz.fi/tmisu/
Log | Files | Refs | README | LICENSE

commit 97d7ec11983e3d146802407770b0965ba69f6729
parent 6f4bcef9f6d3298dfe75bfc2a56bc68b963d6376
Author: Santtu Lakkala <inz@inz.fi>
Date:   Wed, 28 Apr 2021 11:35:17 +0300

s/tiramisu/tmisu/g

Diffstat:
MREADME.md | 26++++++++++----------------
Msrc/tmisu.c | 4++--
2 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md @@ -14,21 +14,17 @@ Users could have notifications display in a pre-existing bar, make a control pan notifications, push notifications to their phone if their computer has been idle for an amount of time, make notifications more accessible with text-to-speech, and so much more. -# Projects Using tiramisu - -- [polynotifications by alnj](https://github.com/alnj/polynotifications) - # Installation -Clone the repository and build the project. Then move tiramisu to a location that is specified in `$PATH`. +Clone the repository and build the project. Then move tmisu to a location that is specified in `$PATH`. ``` -$ git clone https://github.com/Sweets/tiramisu -$ cd ./tiramisu +$ git clone https://git.inz.fi/tmisu/ +$ cd ./tmisu $ make -# cp ./tiramisu /usr/bin/tiramisu -# chmod +x /usr/bin/tiramisu +# cp ./tmisu /usr/bin/tmisu +# chmod +x /usr/bin/tmisu ``` #### Note that the use of a pound symbol (#) denotes escalated privileges. @@ -36,14 +32,14 @@ $ make # Usage -Redirecting output of tiramisu to the input of another program is the ideal methodology to using -tiramisu. +Redirecting output of tmisu to the input of another program is the ideal methodology to using +tmisu. ``` tmisu | your-application ``` -By default tiramisu outputs notifications in a psuedo-key-value line format. +By default tmisu outputs notifications in a psuedo-key-value line format. You can supply the `-j` flag to output notification data in JSON format. ### Example of default output @@ -69,13 +65,11 @@ body: You have received 4 new messages. ### Example of JSON output ``` -$ tiramisu -j +$ tmisu -j ``` ``` {"app_name": "evolution-mail-notification", "app_icon": "evolution", "replaces_id": 0, "timeout": -1, "hints": {"desktop-entry": "org.gnome.Evolution", "urgency": 1}, "actions": {"Show INBOX": "default"}, "summary": "New email in Evolution", "body": "You have received 4 new messages."} ``` -#### Note that only a single process can claim the org.freedesktop.Notifications name at a given time, so any other running notification daemon must be killed before running tiramisu. - -##### Thanks to [BanchouBoo](https://github.com/BanchouBoo) for helping test tiramisu and providing the gif of it. +#### Note that only a single process can claim the org.freedesktop.Notifications name at a given time, so any other running notification daemon must be killed before running tmisu. diff --git a/src/tmisu.c b/src/tmisu.c @@ -60,8 +60,8 @@ DBusHandlerResult handle_message(DBusConnection *connection, DBusMessage *messag } else if (dbus_message_is_method_call(message, "org.freedesktop.Notifications", "GetServerInformation")) { DBusMessage *reply = dbus_message_new_method_return(message); dbus_message_append_args(reply, - DBUS_TYPE_STRING, &(const char *){ "tiramisu" }, - DBUS_TYPE_STRING, &(const char *){ "Sweets" }, + DBUS_TYPE_STRING, &(const char *){ "tmisu" }, + DBUS_TYPE_STRING, &(const char *){ "inz" }, DBUS_TYPE_STRING, &(const char *){ "1.0" }, DBUS_TYPE_STRING, &(const char *){ "1.2" }, DBUS_TYPE_INVALID);