Add custom flatpak update module to waybar
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
"margin-bottom": 16,
|
||||
"margin-left": 16,
|
||||
"margin-right": 16,
|
||||
"modules-left": ["gamemode", "custom/backup", "battery", "temperature", "cpu", "memory", "network"],
|
||||
"modules-left": ["gamemode", "custom/flatpak", "custom/backup", "battery", "temperature", "cpu", "memory", "network"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["mpris", "pulseaudio", "backlight", "idle_inhibitor", "clock"],
|
||||
"clock": {
|
||||
@@ -121,6 +121,13 @@
|
||||
"stopped": "⏹"
|
||||
}
|
||||
},
|
||||
"custom/flatpak": {
|
||||
"interval": 180,
|
||||
"tooltip-format": "{} pending Flatpak updates available",
|
||||
"format": " {}",
|
||||
"exec": "flatpak remote-ls --updates --app | wc -l",
|
||||
"exec-if": "test $(flatpak remote-ls --updates --app | wc -l) -gt 0"
|
||||
},
|
||||
"custom/backup": {
|
||||
"interval": 60,
|
||||
"format": "",
|
||||
|
Reference in New Issue
Block a user