You are not logged in.

#1 2013-03-27 12:12:50

wretch
Member
From: pdx
Registered: 2012-11-24
Posts: 22

SiND, a Simple, textbased, Notification Daemon

Alright. I've just gotten the notification daemon I've been writing into a solid spot, so I'd thought I'd share!

SiND is a [basically] freedesktop-compliant notification daemon. It receives notifications from dbus, and, well, just spits them out to stdout.
It does so in a buffered way, printing all the current notifications whenever a new one arrives or one expires.

Using the --lines option, you get a psuedo-curses program smile, free to display your notifications in whatever terminal you want.
This also means you can pipe it into a dzen slave window. or whatever other panel you want.
Or whatever else you want to do!

You can format how each notification is printed (app-name, summary, body, id) and you can also spit out an extra line (a... status line smile ) containing some extra information, like how many active notifications there are and custom strings if you get new ones. So you can stick it in your panel's title bar. Or whatever.

SiND - Github

Personally, I've never been a fan of desktop notifications, but since I can just output into any old terminal, I've found myself using it for short-term todolists and stuff using notify-send. I've also found not being tied down to a gui makes 'regular' notifications a lot less annoying, too (and you can pipe em through grep!)

Basically, I wanted to write a notification daemon that lets you do whatever you want to do to desktop notifications. If you need help making SiND do whatever you want, lemme know. smile




Want more flair? See also:
dunst
twmn

Last edited by wretch (2013-04-09 23:49:35)

Offline

#2 2013-03-27 15:32:10

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: SiND, a Simple, textbased, Notification Daemon

Sounds interesting!

Offline

#3 2013-03-27 22:29:25

wretch
Member
From: pdx
Registered: 2012-11-24
Posts: 22

Re: SiND, a Simple, textbased, Notification Daemon

Army wrote:

Sounds interesting!

Thanks! Let me know if you try it out.

Also, a quickly hobbled-togther conky script:

#! /bin/sh

tmp_file=/tmp/sindconky

sind -s "FLUSH%c Notifications: %N%P" -S \
--new_s='[new] ' --pending_s='' \
| while read; do
    if [[ "$REPLY" == "FLUSH"* ]]; then
        echo "${REPLY:5}" > $tmp_file
    else
        echo "$REPLY" >> $tmp_file
    fi
done

Just cat the file in your conky conf

Last edited by wretch (2013-03-28 16:13:09)

Offline

#4 2013-03-28 09:02:22

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: SiND, a Simple, textbased, Notification Daemon

Your PKGBUILD isn't working this way, your _gitroot only works for yourself. And please don't add stuff like "pwd" to the build function, there's no use for it! Here's a working PKGBUILD I made which follows the packaging standards.

I probably won't use sind, because I'm very happy with dunst, but I like yours as well, because it can be used in scripts for e.g. conky, like your script shows. I like that!

Offline

#5 2013-03-28 16:28:13

wretch
Member
From: pdx
Registered: 2012-11-24
Posts: 22

Re: SiND, a Simple, textbased, Notification Daemon

Army wrote:

Your PKGBUILD isn't working this way, your _gitroot only works for yourself. And please don't add stuff like "pwd" to the build function, there's no use for it! Here's a working PKGBUILD I made which follows the packaging standards.

Ahh, thanks! Shoulda checked that out before. Thanks a bunch for your version.
I wont be able to update the aur pkgbuild for a day or two, so if anyone else is interested in trying this out, just try Army's pkgbuild.

Army wrote:

I probably won't use sind, because I'm very happy with dunst, but I like yours as well, because it can be used in scripts for e.g. conky, like your script shows. I like that!

Indeed! Dunst and twmnd are both really nice. I was using twmnd for a while.
I personally found myself wanting to use something even simpler, so I wrote sind, hopefully others here will enjoy the scripting capabilities of sind as well. That was my main intent in writing it.

Offline

#6 2013-04-09 23:39:39

wretch
Member
From: pdx
Registered: 2012-11-24
Posts: 22

Re: SiND, a Simple, textbased, Notification Daemon

Hi,
I've fixed the pkgbuild, and I've added a script for displaying notifications with xosd.

Offline

#7 2013-04-10 09:52:04

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: SiND, a Simple, textbased, Notification Daemon

Hi again smile About your PKGBUILD, it looks fine. BUT pacman got a big update and now PKGBUILDs for git packages should look differently. Look at https://wiki.archlinux.org/index.php/VC … pacman_4.1 to see how we do it now. If you have problems, I can help you.

Offline

Board footer

Powered by FluxBB