i am incredibly annoyed by notifications but solutions are cheap

I wanted notifications on my OpenBSD laptop, but dunsts defaults suck and the config sucks and I didn't want to have to write a massive config just to make it resemble something I don't hate and integrates nicely with cwm. I just want to pipe notifications to /dev/console and have xconsole show them. I wrote a Perl script to do this, it establishes an org.freedesktop.Notifications service and prints notifications to stdout.

Obnoxious

It depends on Net::DBus, I named it Obnoxious. There is embedded pod documentation, but there's not much to document, you just run it. When there is a notification, it prints <app-name>\t<summary>\t<body>\n to stdout.

I don't like dbus or freedesktop very much.

You can try,

shell source
obnoxious > /dev/console

And notifications will appear in xconsole.

You can try,

shell source
obnoxious \
	| awk -F'\t' '
	{
		printf "[%s] %s", $1, $2
		if ($3) printf " -> %s", $3
		printf "\n"
	}' \
	> /dev/console

and it'll be formatted a little bit nicer.

You can install xdotool and try,

shell source
obnoxious \
	| awk -F'\t' '
	{
		printf "[%s] %s", $1, $2
		if ($3) printf " -> %s", $3
		printf "\n"
		system("xdotool search --name xconsole windowraise")
	}' \
	> /dev/console

and when you get a notification, it will bring the xconsole window to the front without focusing it.