Skip to content

A simple Waybar update checking module for Fedora Linux.

License

Notifications You must be signed in to change notification settings

furuycom/waybar-dnf-updates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

waybar-dnf-updates

waybar-dnf-updates

Download the checkupdates.sh script, put it in $HOME/.config/waybar/scripts/checkupdates.sh.

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

    "custom/updates": {
    "exec": "bash $HOME/.config/waybar/scripts/checkupdates.sh", // <--- path to script
    "on-click-right": "bash $HOME/.config/waybar/scripts/checkupdates.sh", // refresh on right click
    "on-click-middle": "swaymsg exec '$term -e sudo dnf update'", // update on middle click    
    "interval": 900, // refresh every 15 minutes
    "return-type": "json",
    "format": "{icon}",
    "format-alt": "{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 module for Fedora Linux.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 100.0%