[Waybar] Add custom update manager

This commit is contained in:
2022-10-03 15:21:57 +02:00
parent 7b9a3c41dd
commit 70d96e45f1
3 changed files with 117 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
[{
"spacing": 4, // Gaps between modules (4px)
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-right": ["pulseaudio", "memory", "cpu", "battery", "network", "clock", "tray"],
"modules-right": ["pulseaudio", "memory", "cpu", "battery", "network", "custom/pacman", "clock", "tray"],
"memory": {
"format": "\uf538 {used:0.1f}GiB",
},
@@ -55,6 +55,17 @@
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/pacman": {
"format": "{icon} {}",
"return-type": "json",
"escape": true,
"format-icons": {
"uptodate": "\uf00c",
"available": "\uf019"
},
"interval": 600,
"exec": "$HOME/.config/waybar/pacman.py '(?:^(?:linux-|sway|wl)|pipewire)' 2> /dev/null"
}
}]