Add weather and pacman modules to waybar
This commit is contained in:
@@ -1,13 +1,31 @@
|
||||
{
|
||||
"position": "top",
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"modules-right": ["pulseaudio", "sway/language", "network", "clock", "tray"],
|
||||
"modules-right": [
|
||||
"custom/weather",
|
||||
"custom/pacman-updates",
|
||||
"pulseaudio",
|
||||
"sway/language",
|
||||
"network",
|
||||
"clock",
|
||||
"tray"
|
||||
],
|
||||
|
||||
"sway/workspaces": {
|
||||
"all-output": true,
|
||||
"format": "{index}"
|
||||
},
|
||||
|
||||
"custom/weather": {
|
||||
"exec": "curl 'https://wttr.in/?format=1'",
|
||||
"interval": 60
|
||||
},
|
||||
"custom/pacman-updates": {
|
||||
"exec": "pacman -Qu | wc -l",
|
||||
"interval": 60,
|
||||
"return-type": "{}",
|
||||
"format": "{} updates"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"format-muted": "MUTE"
|
||||
|
||||
@@ -30,6 +30,8 @@ window#waybar {
|
||||
background: #ffa579;
|
||||
}
|
||||
|
||||
#custom-weather,
|
||||
#custom-pacman-updates,
|
||||
#clock,
|
||||
#network,
|
||||
#language,
|
||||
|
||||
Reference in New Issue
Block a user