From 672f0207e7c0aa01ae542e10835be5c01b3aecd9 Mon Sep 17 00:00:00 2001 From: histalek Date: Tue, 26 Apr 2022 09:51:04 +0200 Subject: [PATCH] waybar: Add custom flatpak module --- .config/waybar/config | 13 +++++++++++++ .config/waybar/style.css | 9 ++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index 7e85514..ec4e491 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -14,6 +14,7 @@ "custom/arrowtray", "tray", "custom/arrowpackages", + "custom/flatpak", "custom/packages", "custom/arrowcpu", "cpu", @@ -110,6 +111,18 @@ }, "tooltip": false, }, + "custom/flatpak": { + "format": " {}", + "interval": 3600, + "exec": "flatpak remote-ls --updates | wc -l", + "exec-if": "exit 0", + "on-click": "exit 0", + "signal": 8, + "states": { + "warning": 1, + }, + "tooltip": false, + }, "custom/arrowtime": { "format": "", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 3a7ee27..ab3eb3b 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -106,7 +106,8 @@ #network, #pulseaudio, #tray, -#custom-packages { +#custom-packages, +#custom-flatpak { padding-left: 10px; padding-right: 10px; } @@ -136,7 +137,8 @@ #network.disconnected, #memory.warning, #cpu.warning, -#custom-packages.warning { +#custom-packages.warning, +#custom-flatpak.warning { color: @warning; } @@ -198,7 +200,8 @@ color: @dark; } -#custom-packages { +#custom-packages, +#custom-flatpak { background: @packages; color: @dark; }