diff options
Diffstat (limited to 'window-switcher')
| -rw-r--r-- | window-switcher/Switcher.qml | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |
