Made my first app in Rust! A notification daemon for Linux :)

153 points SomethingOfAGirl

I call it krustify, because k (for KDE, the DE I use and since it's made in Qt why not), rust (because rust, obviously), krusty (because it's made by a dumb sad clown) and the suffix ify because of "notify". It just seemed appropriate.

https://reddit.com/link/x14wic/video/nbrt52tdwqk91/player

The main idea was to have something like notify-osd, which is old and AFAIK unmaintained, using Qt, but also adding the possibility of clicking the notification and invoking the default action (which is usually setting focus to the app that spawned the notification) under certain conditions. In this case, I chose the Left Alt key; when you keep it pressed, it freezes all notifications (they never expire unless you stop pressing the key) and it lets you click them.

I know it's not for everyone. Probably it's not for the vast majority, since I hardly ever see anyone talking about notify-osd-like notification daemons in Linux forums. I made it for me, out of frustration with how notifications are displayed and are always clickable, interrupting me whenever I needed to click on the spot notifications show up.

I initially wrote it in python, but since a friend of mine introduced me to rust I just said "why not" and migrated it.

​

If you're interested you can check out the repo. :)
It's my first ever experience writing code in rust so you'll probably find a lot of bad practices, awful code and "println!"s all over the place. And a loooot of unused imports I need to get rid of.

​

All suggestions/comments/criticism (constructive or destructive) are welcome <3