about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/waybar/config7
1 files changed, 6 insertions, 1 deletions
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": "<span style=\"italic\">{}</span>"
     },