https://github.com/ccuqme/swarofi-updater
A GUI Updater & Waybar Applet for Fedora Sericea
https://github.com/ccuqme/swarofi-updater
fedora rofi rofi-scripts rpm-ostree sericea sway updater-app waybar
Last synced: 26 days ago
JSON representation
A GUI Updater & Waybar Applet for Fedora Sericea
- Host: GitHub
- URL: https://github.com/ccuqme/swarofi-updater
- Owner: ccuqme
- License: gpl-3.0
- Created: 2023-05-07T19:19:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T22:47:49.000Z (10 months ago)
- Last Synced: 2024-07-13T23:39:39.638Z (10 months ago)
- Topics: fedora, rofi, rofi-scripts, rpm-ostree, sericea, sway, updater-app, waybar
- Language: Shell
- Homepage:
- Size: 86.9 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swarofi Updater
Swarofi (Sericea/Sway, Waybar, Rofi) Updater is a GUI Updater & Waybar Applet for Fedora Sericea.
This repository contains a shell script and a Waybar applet specifically designed for Fedora Sericea to notify of updates and to update Flatpak and RPM-OSTree packages. The script uses Rofi to create windows for user interaction. Modifications might be required to make it work on other OSTRee based distributions, and is definitely required for non-OSTRee based ones.
## Demo
[swarofi.webm](https://github.com/ccuqme/swarofi-updater/assets/63260355/4aa7cf84-a9fc-4615-8181-294d3f75ffd7)
## Screenshots
### Updater

### Applet
## Usage
1. Clone this repository to your desired location:
```bash
git clone https://github.com/ccuqme/swarofi-updater.git
```2. Make the scripts swarofi-updater.sh and swarofi-applet.sh executable:
```chmod +x swarofi-updater/swarofi-updater.sh swarofi-updater/swarofi-applet.sh```
3. Configure the Waybar applet by adding the following to your Waybar configuration file:
```json
{
"custom/swarofi-updates": {
"format": "Updates: {}",
"interval": 3600,
"exec": "path/to/swarofi-updater/swarofi-applet.sh",
"on-click": "path/to/swarofi-updater/swarofi-updater.sh",
"signal": 8
}
}
```
Replace `path/to/swarofi-updater` with the actual path to the repository.4. Add `custom/swarofi-updates` to left, center or right module (e.g. `"modules-right": ["custom/swarofi-updates", "tray", "idle_inhibitor", "pulseaudio", "clock"]`)
5. Reload your Waybar configuration (By reloading Sway)
Now you should see the update notifications in your Waybar when there is updates available. It should not show when there is 0 updates.
## Customization
### Rofi Appearance
To customize the Rofi appearance, modify the style-1.rasi file. This style is a barely customized version of type-1 and style-1 from [github.com/adi1090x/rofi/tree/master/files/applets](https://github.com/adi1090x/rofi/tree/master/files/applets), so the other styles from this repo should work by changing window width to 820px, and listview layout to "horizontal". I don't think I changed anything else.### Color Schemes
To change the color scheme, edit the `shared/colors.rasi` file by changing the import line, for example:```arduino
@import ./colors/dracula.rasi"
```#### Available color schemes:
* adapta
* arc
* black
* catppuccin
* cyberpunk
* dracula
* everforest
* gruvbox
* lovelace
* navy
* nord
* onedark
* paper
* solarized
* yousai## Credits
This project uses theme and style files from [adi1090x/rofi](https://github.com/adi1090x/rofi).