Add custom flatpak update module to waybar
This commit is contained in:
parent
1cb07b84c1
commit
6c17a0171b
@ -35,7 +35,7 @@
|
|||||||
"margin-bottom": 16,
|
"margin-bottom": 16,
|
||||||
"margin-left": 16,
|
"margin-left": 16,
|
||||||
"margin-right": 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-center": [],
|
||||||
"modules-right": ["mpris", "pulseaudio", "backlight", "idle_inhibitor", "clock"],
|
"modules-right": ["mpris", "pulseaudio", "backlight", "idle_inhibitor", "clock"],
|
||||||
"clock": {
|
"clock": {
|
||||||
@ -121,6 +121,13 @@
|
|||||||
"stopped": "⏹"
|
"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": {
|
"custom/backup": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"format": "",
|
"format": "",
|
||||||
|
@ -204,3 +204,7 @@ window#waybar.fullscreen #window {
|
|||||||
color: #fb4934;
|
color: #fb4934;
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
}
|
}
|
||||||
|
#custom-flatpak {
|
||||||
|
color: rgba(235, 219, 178, 0.8);
|
||||||
|
padding: 0 1em;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user