chezmoi/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/updates-dnf
2021-02-25 09:38:16 +01:00
..
screenshots Updated polybar-scripts. 2021-02-25 09:38:16 +01:00
README.md Updated polybar-scripts. 2021-02-25 09:38:16 +01:00
updates-dnf.sh Updated polybar-scripts. 2021-02-25 09:38:16 +01:00

Script: updates-dnf

A script that shows if there are updates for dnf-based distributions like Fedora.

updates-dnf

Configuration

You have to add the dnf command to the /etc/sudoers NOPASSWD of your user:

user ALL=(ALL) NOPASSWD: /usr/bin/dnf updateinfo -q --list

Module

[module/updates-dnf]
type = custom/script
exec = ~/polybar-scripts/updates-dnf.sh
interval = 600