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)
The HUD after a completed run, captured in demo mode.
- Sequential pipeline — system packages, then Flatpak apps, then AUR. Stages can be enabled or disabled individually.
- Login daemon — a
systemd --userservice 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.lckis 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.
- An Arch-based distribution (pacman) with
yayinstalled. - Python 3.10+ with PyGObject (
python-gobject) and GTK 4 / libadwaita. - Flatpak (optional — disable the stage if you do not use it).
sudoaccess to create a narrow NOPASSWD rule forpacmanandflatpak.- A font with the glyphs used by the HUD; any default desktop font works.
git clone https://github.com/iluminoo/sysup.git
cd sysup
./install.shThe installer:
- copies the code to
~/.local/lib/sysupand creates~/.local/bin/sysup; - asks for your password once to write
/etc/sudoers.d/99-sysup-$USER, allowingNOPASSWDonly forpacmanandflatpak(yaycallspacmaninternally, so it needs the same rule); - writes and enables
sysup-daemon.service(systemd --user); - adds a desktop launcher and, on CachyOS, disables
arch-update.timerso 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.
The daemon runs in the background. Open the panel whenever you want:
- application menu → SYSUP — Central de Atualizações
Super, then typesysup- 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 is cooperative. The current stage finishes normally, then the pipeline waits before starting the next one. This avoids freezing a running
pacmantransaction with a held lock. -
Cancel and skip use
SIGINT, the graceful exit that lets pacman/yay releasedb.lckthemselves.SIGTERMandSIGKILLare 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
~/.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. |
SYSUP_DEMO=1 sysup daemon # terminal 1
sysup gui # terminal 2Demo mode replays synthetic pacman/flatpak/yay output. Use sysup start,
pause, resume, skip and cancel to exercise the whole flow safely.
| 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.
~/.local/lib/sysup/uninstall.shRemoves 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.
- Arch-based systems only: the pipeline is built around
pacmanandyay. - Updates run unattended, so read the sudoers rule before installing and keep
the default
noconfirmonly if that matches how you want your machine updated. Disableyay_develunless 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.
MIT — see LICENSE.
