Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syphiel/rrwidget
A custom waybar reddit widget
https://github.com/syphiel/rrwidget
gtk4 gtk4-rs reddit reddit-crawler swaywm waybar
Last synced: 2 days ago
JSON representation
A custom waybar reddit widget
- Host: GitHub
- URL: https://github.com/syphiel/rrwidget
- Owner: Syphiel
- License: mit
- Created: 2024-11-17T05:39:36.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-19T01:03:06.000Z (about 1 month ago)
- Last Synced: 2025-01-22T19:14:29.845Z (2 days ago)
- Topics: gtk4, gtk4-rs, reddit, reddit-crawler, swaywm, waybar
- Language: Rust
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RRWidget
A custom waybar reddit widget. Designed to be used in conjunction with sway and waybar to display a notification icon upon new posts in a given subreddit. D-Bus controlled for easy visibility toggling via sway binds.> [!WARNING]
> This project is designed for my very specific use case and will likely not work for you. If you want to use it, you will need to modify the code to fit your needs.![Screenshot](screenshot.png)
### Requirements
- [GTK4](https://www.gtk.org/docs/installations/linux)
- [Rust](https://rustup.rs/)### Installation
Build and install the binary:
```bash
git clone https://github.com/syphiel/RRWidget.git
cd RRWidget
cargo build --release
cp target/release/rrwidget ~/.local/bin/
cp scripts/toggle-widget.sh ~/.local/bin/
```### Example Usage
Add the following to your waybar config:
```json
"custom/rrwidget": {
"exec": "GSK_RENDERER=ngl $HOME/.local/bin/rrwidget",
"tooltip": false,
"return-type": "json",
"restart-interval": 60,
"format": "{icon}",
"format-icons": {
"default": "",
"new": "",
}
},
```
Enable `custom/rrwidget` in `modules-left`, `modules-center`, or `modules-right` as desired.Add the following to your sway config:
```
bindsym $mod+u exec /home/montasir/.local/bin/toggle-widget.shfor_window [app_id="io.syph.rrwidget"] {
floating enable
move position center
}
```### License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.