i3status_rs::blocks

Module dnf

source
👎Deprecated since 0.33.0: The block has been deprecated in favor of the the packages block
Expand description

Pending updates available for your Fedora system

§Configuration

KeyValuesDefault
intervalUpdate interval in seconds.600
formatA string to customise the output of this block. See below for available placeholders." $icon $count.eng(w:1) "
format_singularSame as format, but for when exactly one update is available." $icon $count.eng(w:1) "
format_up_to_dateSame as format, but for when no updates are available." $icon $count.eng(w:1) "
warning_updates_regexDisplay block as warning if updates matching regex are available.None
critical_updates_regexDisplay block as critical if updates matching regex are available.None
PlaceholderValueTypeUnit
iconA static iconIcon-
countNumber of updates availableNumber-

§Example

Update the list of pending updates every thirty minutes (1800 seconds):

[[block]]
block = "dnf"
interval = 1800
format = " $icon $count.eng(w:1) updates available "
format_singular = " $icon One update available "
format_up_to_date = " $icon system up to date "
critical_updates_regex = "(linux|linux-lts|linux-zen)"
[[block.click]]
# shows dmenu with cached available updates. Any dmenu alternative should also work.
button = "left"
cmd = "dnf list -q --upgrades | tail -n +2 | rofi -dmenu"

§Icons Used

  • update

Structs§

Functions§