diff --git a/waybar/config b/waybar/config index f77564e..7df63fa 100644 --- a/waybar/config +++ b/waybar/config @@ -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" diff --git a/waybar/style.css b/waybar/style.css index 9756351..bc5be5c 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -30,6 +30,8 @@ window#waybar { background: #ffa579; } +#custom-weather, +#custom-pacman-updates, #clock, #network, #language,