From 3edf3482de7ebd5489739b8d3df7d43b588f5db5 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Sun, 17 Oct 2021 23:27:37 +0300 Subject: [PATCH] Add weather and pacman modules to waybar --- waybar/config | 20 +++++++++++++++++++- waybar/style.css | 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) 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,