SNot/README.md

31 lines
1.4 KiB
Markdown
Raw Normal View History

2024-09-21 19:35:44 +00:00
# SNot: Simple NOTification
2024-08-09 14:21:29 +00:00
2024-09-21 19:35:44 +00:00
A simple [desktop notification](https://wiki.archlinux.org/title/Desktop_notifications) server/daemon using the [`dbus`](https://dbus.freedesktop.org/doc/dbus-tutorial.html) protocol. SNot listens for notifications on the [`org.freedesktop.Notifications`](https://specifications.freedesktop.org/notification-spec/latest/basic-design.html) interface, and prints them to the console.
Inspired by [`tiramisu`](https://github.com/Sweets/tiramisu)
## Features
- Prints desktop notifications to the console(or a file, if you redirect it) as text
- Do one thing and do it well([DOTADIW](https://en.wikipedia.org/w/index.php?title=Unix_philosophy&useskin=vector#Do_One_Thing_and_Do_It_Well)) & [KISS](https://en.wikipedia.org/wiki/KISS_Principle) principle: no extra complicated features
- (Not really a feature) Written in [`rust`](https://www.rust-lang.org/) using the [`zbus`](https://docs.rs/zbus/latest/zbus/) crate
2024-09-22 10:27:03 +00:00
## Supported formats
2024-09-21 19:35:44 +00:00
- Plain text - Print the output text. (✓ Just print it)
- [`json`](https://json.org) - This output can be parsed by other programs
2024-09-22 10:27:03 +00:00
- [`rson`](https://github.com/rson-rs/rson) - A more sensible alternative to json
2024-09-21 19:35:44 +00:00
2024-09-22 10:27:03 +00:00
## Upcoming feature
2024-09-21 19:35:44 +00:00
2024-09-22 10:27:03 +00:00
- Better handling of `json` and `rson` data
- Better ways to work with other programs
## Usage
```bash
snot [r|j|p] [v]
```
2024-09-21 19:55:17 +00:00
2024-09-22 10:27:03 +00:00
## Why this project?
2024-09-21 19:55:17 +00:00
- Something simple to work with [`EWW`](https://github.com/elkowar/eww) widgets
- I'm learning Rust