waybar: Add custom flatpak module

This commit is contained in:
histalek 2022-04-26 09:51:04 +02:00
parent 013c72dbe4
commit 672f0207e7
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03
2 changed files with 19 additions and 3 deletions

View file

@ -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": "<span rise='-3000' size='xx-large'></span> {}",
"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": "",

View file

@ -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;
}