From 3e3f4b89131b84ff7466eaddc3c57644ec03de28 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 4 Feb 2023 16:48:14 +0100 Subject: Dotfiles: Waybar: Add weather module --- dotfiles/waybar/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dotfiles') diff --git a/dotfiles/waybar/config b/dotfiles/waybar/config index 4d9b508..b9464fc 100644 --- a/dotfiles/waybar/config +++ b/dotfiles/waybar/config @@ -7,7 +7,7 @@ // Choose the order of the modules "modules-left": ["river/tags", "custom/separator", "river/window"], //"modules-center": ["river/window"], - "modules-right": ["pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"], + "modules-right": ["custom/weather", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"], // Modules configuration //"sway/workspaces": { // "disable-scroll": true, @@ -40,6 +40,11 @@ "unlocked": "" } }, + "custom/weather": { + "format": "{}", + "exec": "curl \"wttr.in/pdx?format=%c%t\" | sed \"s/+//g\"", + "interval": 6000 + }, "sway/mode": { "format": "{}" }, -- cgit 1.4.1