Skip to content

A simple Waybar update checking script for distros using the APT package manager.

License

Notifications You must be signed in to change notification settings

J-Carder/waybar-apt-updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

waybar-apt-updates

Screenshot with updates Screenshot updates

A simple Waybar update checking script for distros using the APT package manager. It is a general script and could work with other bars or just be run in the terminal.

Credit goes to this post for the update command.

How to use

Download the checkupdates script, put it in your PATH and make it executable (chmod +x checkupdates).

To configure, add the following to your Waybar config (~/.config/waybar/config).

"custom/updates": {
    "exec": "$HOME/bin/checkupdates", // <--- path to script
    "on-click": "$HOME/bin/checkupdates", // refresh on click
    "interval": 900, // refresh every 15 minutes
    "return-type": "json",
    "format": "{} {icon}",
    "format-icons": {
        "has-updates": "", // icon when updates needed
        "updated": "" // icon when all packages updated
    }
},

To style use the #custom-updates ID in your Waybar styles file (~/.config/waybar/styles.css).

For more information see the Waybar wiki.

About

A simple Waybar update checking script for distros using the APT package manager.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages