about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-04 16:48:14 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-04 16:48:14 +0100
commit3e3f4b89131b84ff7466eaddc3c57644ec03de28 (patch)
tree0a44db69fae0b8ecf62326494fe165db29c68246
parentDotfiles: Emacs: Hook jq and nix into lsp-bridge (diff)
downloadnixos-config-3e3f4b89131b84ff7466eaddc3c57644ec03de28.tar.gz
nixos-config-3e3f4b89131b84ff7466eaddc3c57644ec03de28.tar.bz2
nixos-config-3e3f4b89131b84ff7466eaddc3c57644ec03de28.zip
Dotfiles: Waybar: Add weather module
-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>"
     },