diff --git a/hyprland/.config/waybar/config b/hyprland/.config/waybar/config index 913c9ef3..1918bcf5 100644 --- a/hyprland/.config/waybar/config +++ b/hyprland/.config/waybar/config @@ -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": "", diff --git a/hyprland/.config/waybar/style.css b/hyprland/.config/waybar/style.css index 1ff4c5e0..e59d0631 100644 --- a/hyprland/.config/waybar/style.css +++ b/hyprland/.config/waybar/style.css @@ -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; +}