Skip to content

rahulmysore23/dms-pkg-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMS Package Updates

A DankMaterialShell widget that checks for pending DNF and Flatpak updates and lets you run them directly from the bar.

Screenshot

Changelog

v1.0.5

  • Fix: Ghost flatpak updates from OCI-backed remotes (e.g. Fedora's registry) — flatpak remote-ls --updates produces false positives for OCI remotes because it compares OSTree commit hashes, which are non-deterministic for OCI images. flatpak update correctly compares OCI manifest digests and reports nothing to do. The plugin now detects OCI remotes at runtime and excludes their apps from the update count.

v1.0.4

  • Fix: "Nothing to do" when clicking Update Flatpak — all apps were system-scope but the update command ran without sudo (user-scope only). Now runs flatpak update --user -y then sudo flatpak update --system -y to cover both.
  • Fix: Plugin count now auto-refreshes ~90 seconds after triggering an update, so the display clears once the update finishes.

v1.0.3

  • Fix: Flatpak updates always showing 0 — the pre-check (flatpak update --no-pull --no-deploy) never fetched from remotes so it always returned "Nothing to do" and exited early. Now goes straight to flatpak remote-ls --updates which correctly reads available updates from cached remote metadata.
  • Fix: DNF command changed from --assumeyes (wrong flag for a list operation) to -q (quiet) for cleaner, more reliable output.
  • Fix: DNF parser now filters additional dnf5 header lines (Upgrades, Name, Obsoleting) preventing them from appearing as ghost packages.

Features

  • Shows total pending update count in the bar pill
  • Lists available DNF package updates with version numbers
  • Lists available Flatpak app updates with remote origin
  • Update DNF button — opens a terminal and runs sudo dnf upgrade -y
  • Update Flatpak button — opens a terminal and runs flatpak update -y
  • Configurable refresh interval
  • Configurable terminal application

Installation

From Plugin Registry (Recommended)

dms plugins install pkgUpdate
# or use the Plugins tab in DMS Settings

Manual

cp -r pkgUpdate ~/.config/DankMaterialShell/plugins/

Then enable the widget in the DMS Plugins tab and add it to DankBar.

Configuration

Setting Default Description
Terminal Application alacritty Terminal used to run updates (kitty, foot, ghostty, etc.)
Refresh Interval 60 min How often to check for updates (5–240 min)
Show Flatpak Updates true Toggle Flatpak section on/off

Requirements

  • dnf (standard on Fedora/RHEL-based systems)
  • flatpak (optional, can be disabled in settings)
  • A terminal emulator that accepts -e to run a command

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors