/swarofi-updater

A GUI Updater & Waybar Applet for Fedora Sway Atomic

Primary LanguageShellGNU General Public License v3.0GPL-3.0

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

Screenshots

Updater

updates_available updated

Applet

applet

Usage

  1. Clone this repository to your desired location:
git clone https://github.com/ccuqme/swarofi-updater.git
  1. Make the scripts swarofi-updater.sh and swarofi-applet.sh executable:

chmod +x swarofi-updater/swarofi-updater.sh swarofi-updater/swarofi-applet.sh

  1. Configure the Waybar applet by adding the following to your Waybar configuration file:
{
  "custom/swarofi-updates": {
    "format": "Updates: {}",
    "interval": 3600,
    "return-type": "json",
    "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.

  1. Add custom/swarofi-updates to left, center or right module (e.g. "modules-right": ["custom/swarofi-updates", "tray", "idle_inhibitor", "pulseaudio", "clock"])

  2. 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, 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:

@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.