aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/superpowers/plans/2026-09-12-window-switcher.md5
-rw-r--r--window-switcher/Switcher.qml5
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/superpowers/plans/2026-09-12-window-switcher.md b/docs/superpowers/plans/2026-09-12-window-switcher.md
index 79f3be1..f9cc6ef 100644
--- a/docs/superpowers/plans/2026-09-12-window-switcher.md
+++ b/docs/superpowers/plans/2026-09-12-window-switcher.md
@@ -90,7 +90,10 @@ Scope {
id: root
property bool open: false
- readonly property var screenObj: Quickshell.screens.find(s => s.name === "DP-1") ?? null
+ property string monitor: "DP-1"
+
+ readonly property var screenObj:
+ Quickshell.screens.find(s => s.name === root.monitor) ?? Quickshell.screens[0]
function toggle() { root.open = !root.open; }
function close() { root.open = false; }
diff --git a/window-switcher/Switcher.qml b/window-switcher/Switcher.qml
index 762c190..d989e57 100644
--- a/window-switcher/Switcher.qml
+++ b/window-switcher/Switcher.qml
@@ -17,7 +17,10 @@ Scope {
id: root
property bool open: false
- readonly property var screenObj: Quickshell.screens.find(s => s.name === "DP-1") ?? null
+ property string monitor: "DP-1"
+
+ readonly property var screenObj:
+ Quickshell.screens.find(s => s.name === root.monitor) ?? Quickshell.screens[0]
function toggle() { root.open = !root.open; }
function close() { root.open = false; }