Add weather and pacman modules to waybar

This commit is contained in:
2021-10-17 23:27:37 +03:00
parent 8af24c40bb
commit 3edf3482de
2 changed files with 21 additions and 1 deletions

View File

@@ -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"

View File

@@ -30,6 +30,8 @@ window#waybar {
background: #ffa579;
}
#custom-weather,
#custom-pacman-updates,
#clock,
#network,
#language,