Use the new weather overlay instead

This commit is contained in:
David Heinemeier Hansson
2026-05-17 08:49:35 +02:00
parent 6c41ab69d3
commit 80da45dd1c
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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" })
@@ -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