[Waybar] Add custom update manager
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user