From 80da45dd1c42a3765654f49ec08cd5d730da6895 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 17 May 2026 08:49:35 +0200 Subject: [PATCH] Use the new weather overlay instead --- bin/omarchy-notification-weather | 2 +- default/hypr/bindings/utilities.lua | 2 +- .../plugins/bar/widgets/weatherFlyout.qml | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-notification-weather b/bin/omarchy-notification-weather index 5b4d17bd..9c6dbf31 100755 --- a/bin/omarchy-notification-weather +++ b/bin/omarchy-notification-weather @@ -2,4 +2,4 @@ # omarchy:summary=Show the current weather notification -omarchy-notification-send -g $(omarchy-weather-icon) -u low "$(omarchy-weather-status)" +omarchy-shell-ipc weatherFlyout show diff --git a/default/hypr/bindings/utilities.lua b/default/hypr/bindings/utilities.lua index 63271844..0ee6d6b5 100644 --- a/default/hypr/bindings/utilities.lua +++ b/default/hypr/bindings/utilities.lua @@ -51,7 +51,7 @@ hl.bind("SUPER + SHIFT + CTRL + R", hl.dsp.exec_cmd("omarchy-reminder clear"), { hl.bind("SUPER + CTRL + ALT + T", hl.dsp.exec_cmd([[notify-send -a omarchy-action -u low " $(date +"%A %H:%M · %d %B %Y · Week %V")"]]), { description = "Show time" }) hl.bind("SUPER + CTRL + ALT + B", hl.dsp.exec_cmd([[notify-send -a omarchy-action -u low "$(omarchy-battery-status)"]]), { description = "Show battery remaining" }) -hl.bind("SUPER + CTRL + ALT + W", hl.dsp.exec_cmd([[notify-send -a omarchy-action -u low "$(omarchy-weather-status)"]]), { description = "Show weather" }) +hl.bind("SUPER + CTRL + ALT + W", hl.dsp.exec_cmd("omarchy-notification-weather"), { description = "Show weather" }) hl.bind("SUPER + CTRL + A", hl.dsp.exec_cmd("omarchy-launch-audio"), { description = "Audio controls" }) hl.bind("SUPER + CTRL + B", hl.dsp.exec_cmd("omarchy-launch-bluetooth"), { description = "Bluetooth controls" }) diff --git a/default/quickshell/omarchy-shell/plugins/bar/widgets/weatherFlyout.qml b/default/quickshell/omarchy-shell/plugins/bar/widgets/weatherFlyout.qml index d7f11d3a..cf4c1091 100644 --- a/default/quickshell/omarchy-shell/plugins/bar/widgets/weatherFlyout.qml +++ b/default/quickshell/omarchy-shell/plugins/bar/widgets/weatherFlyout.qml @@ -13,6 +13,21 @@ Item { property bool popupOpen: false function closePopout() { popupOpen = false } + IpcHandler { + target: "weatherFlyout" + function show(): void { + root.popupOpen = true + root.refresh() + autoCloseTimer.start() + } + } + + Timer { + id: autoCloseTimer + interval: 5000 + onTriggered: root.popupOpen = false + } + // Parsed wttr.in j1 response. Kept on failure so stale data stays visible. property var report: null