Add custom flatpak update module to waybar

This commit is contained in:
Salt 2024-10-20 19:32:30 -05:00
parent 1cb07b84c1
commit 6c17a0171b
2 changed files with 12 additions and 1 deletions

View File

@ -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": "",

View File

@ -204,3 +204,7 @@ window#waybar.fullscreen #window {
color: #fb4934;
padding: 0 1em;
}
#custom-flatpak {
color: rgba(235, 219, 178, 0.8);
padding: 0 1em;
}