Skip to content
iluminooPublic

About

Sequential pacman → flatpak → yay update daemon with a game-style GTK4 HUD

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

sysup

A tiny update daemon with a game-style GTK4 HUD for Arch-based systems.

sysup runs pacman → flatpak → yay in order, once per login, in the background. A control panel lets you watch the live output of each stage and pause, skip, cancel or restart the run. The window never opens by itself.

The interface is written in Brazilian Portuguese. Code, comments and this document are in English.

pacman  ▸  flatpak  ▸  yay (AUR)

sysup HUD after a completed run

The HUD after a completed run, captured in demo mode.

Features

  • Sequential pipeline — system packages, then Flatpak apps, then AUR. Stages can be enabled or disabled individually.
  • Login daemon — a systemd --user service waits for the network to settle (60 s by default) and starts the update without a terminal.
  • Live HUD — per-stage cards with elapsed time, package/PID counts, download size, exit code and a colourised terminal view of the real output.
  • Real control — start, pause, resume, skip a stage or cancel the whole run from the GUI or the CLI.
  • Safe lock handling — pause is cooperative and cancellation asks pacman/yay to exit gracefully, so /var/lib/pacman/db.lck is not left behind.
  • No surprises — the panel only appears when you open it; no auto-popup at login and no window controls drawn inside the HUD.
  • Demo mode — simulate the whole pipeline without touching a single package.

Requirements

  • An Arch-based distribution (pacman) with yay installed.
  • Python 3.10+ with PyGObject (python-gobject) and GTK 4 / libadwaita.
  • Flatpak (optional — disable the stage if you do not use it).
  • sudo access to create a narrow NOPASSWD rule for pacman and flatpak.
  • A font with the glyphs used by the HUD; any default desktop font works.

Install

git clone https://github.com/iluminoo/sysup.git
cd sysup
./install.sh

The installer:

  1. copies the code to ~/.local/lib/sysup and creates ~/.local/bin/sysup;
  2. asks for your password once to write /etc/sudoers.d/99-sysup-$USER, allowing NOPASSWD only for pacman and flatpak (yay calls pacman internally, so it needs the same rule);
  3. writes and enables sysup-daemon.service (systemd --user);
  4. adds a desktop launcher and, on CachyOS, disables arch-update.timer so two updaters do not fight over the pacman lock.

The sudoers file is validated with visudo -c before being installed, and nothing is changed if validation fails.

Usage

The daemon runs in the background. Open the panel whenever you want:

  • application menu → SYSUP — Central de Atualizações
  • Super, then type sysup
  • terminal: sysup gui
Action Command In the HUD
Open the panel sysup gui —
Start now sysup start Ctrl+U
Pause / resume sysup pause / sysup resume Ctrl+P
Skip current stage sysup skip ⏭ button on each card
Cancel everything sysup cancel —
Reload the view — Ctrl+R
State as JSON sysup status —
Preferences / history — ☰ menu

Pause and cancel semantics

  • Pause is cooperative. The current stage finishes normally, then the pipeline waits before starting the next one. This avoids freezing a running pacman transaction with a held lock.

  • Cancel and skip use SIGINT, the graceful exit that lets pacman/yay release db.lck themselves. SIGTERM and SIGKILL are only fallbacks, and an orphaned lock is cleaned up only when no pacman/yay process is alive.

  • If an old run left a stale lock behind, remove it manually:

    sudo rm -f /var/lib/pacman/db.lck

Configuration

~/.config/sysup/config.json (edited from the panel's ☰ → Preferences, or by hand):

Key Default Meaning
auto_run true Start the pipeline after login.
start_delay 60 Seconds to wait for the network.
enabled all true {"pacman": bool, "flatpak": bool, "yay": bool}
noconfirm true Answer yes to pacman/yay questions.
yay_devel false Pass --devel to yay.
notify true Desktop notification when a run ends.
keep_history 50 Runs kept in the history file.

Try it without updating anything

SYSUP_DEMO=1 sysup daemon   # terminal 1
sysup gui                   # terminal 2

Demo mode replays synthetic pacman/flatpak/yay output. Use sysup start, pause, resume, skip and cancel to exercise the whole flow safely.

Files

Path What
~/.local/lib/sysup/ code
~/.local/bin/sysup CLI wrapper
~/.config/sysup/config.json preferences
~/.local/state/sysup/state.json current run state
~/.local/state/sysup/history.json past runs
~/.local/state/sysup/logs/ raw per-stage logs
~/.local/state/sysup/control.sock daemon control socket
~/.config/systemd/user/sysup-daemon.service user service
~/.local/share/applications/io.github.sysup.Sysup.desktop launcher

Everything is plain JSON and plain text — easy to inspect, copy or delete.

Uninstall

~/.local/lib/sysup/uninstall.sh

Removes the daemon, the desktop launcher, the sudoers rule and the code. Configuration, logs and history are kept for reference; delete ~/.config/sysup and ~/.local/state/sysup to remove them too.

Notes and limitations

  • Arch-based systems only: the pipeline is built around pacman and yay.
  • Updates run unattended, so read the sudoers rule before installing and keep the default noconfirm only if that matches how you want your machine updated. Disable yay_devel unless you really want VCS packages rebuilt.
  • The HUD forces a dark theme by design; there is no light variant.
  • The UI text is Brazilian Portuguese. Translations are welcome.

License

MIT — see LICENSE.

About

Sequential pacman → flatpak → yay update daemon with a game-style GTK4 HUD

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages