Module i3status_rs::blocks::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
Key | Values | Default |
---|---|---|
interval | Update interval in seconds. | 600 |
format | A string to customise the output of this block. See below for available placeholders. | " $icon $count.eng(w:1) " |
format_singular | Same as format , but for when exactly one update is available. | " $icon $count.eng(w:1) " |
format_up_to_date | Same as format , but for when no updates are available. | " $icon $count.eng(w:1) " |
warning_updates_regex | Display block as warning if updates matching regex are available. | None |
critical_updates_regex | Display block as critical if updates matching regex are available. | None |
Placeholder | Value | Type | Unit |
---|---|---|---|
icon | A static icon | Icon | - |
count | Number of updates available | Number | - |
§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§
- Config
Deprecated
Functions§
- run
Deprecated