@@ -2,7 +2,6 @@ pragma ComponentBehavior: Bound
22
33import QtQuick
44import QtQuick.Layouts
5- import Quickshell.Hyprland
65import Caelestia.Config
76import qs.components
87import qs.services
@@ -96,7 +95,7 @@ ColumnLayout {
9695 readonly property bool isCurrent: root .client ? .workspace .id === wsId
9796
9897 onClicked: {
99- Hypr .dispatch (` movetoworkspace ${ wsId} ,address:0x${ root .client ? .address }` );
98+ Hypr .dispatch (Hypr . usingLua ? ` hl.dsp.window.move({ workspace = " ${ wsId } ", follow = true }) ` : ` movetoworkspace ${ wsId} ,address:0x${ root .client ? .address }` );
10099 }
101100
102101 color: isCurrent ? Colours.tPalette.m3surfaceContainerHighest : Colours.palette.m3tertiaryContainer
@@ -119,7 +118,7 @@ ColumnLayout {
119118 color: Colours.palette.m3secondaryContainer
120119 onColor: Colours.palette.m3onSecondaryContainer
121120 text: root.client?.lastIpcObject.floating ? qsTr("Tile") : qsTr("Float")
122- onClicked: Hypr.dispatch(Hyprland .usingLua ? ` hl .dsp .window .float ({ window = " address:0x${root.client?.address}" })` : ` togglefloating address: 0x$ {root .client ? .address }` )
121+ onClicked: Hypr.dispatch(Hypr .usingLua ? ` hl .dsp .window .float ({ window = " address:0x${root.client?.address}" })` : ` togglefloating address: 0x$ {root .client ? .address }` );
123122 }
124123
125124 Loader {
@@ -133,15 +132,15 @@ ColumnLayout {
133132 color: Colours.palette.m3secondaryContainer
134133 onColor: Colours.palette.m3onSecondaryContainer
135134 text: root.client?.lastIpcObject.pinned ? qsTr("Unpin") : qsTr("Pin")
136- onClicked: Hypr.dispatch(Hyprland .usingLua ? ` hl .dsp .window .pin ({ window = " address:0x${root.client?.address}" })` : ` pin address: 0x$ {root .client ? .address }` )
135+ onClicked: Hypr.dispatch(Hypr .usingLua ? ` hl .dsp .window .pin ({ window = " address:0x${root.client?.address}" })` : ` pin address: 0x$ {root .client ? .address }` );
137136 }
138137 }
139138
140139 Button {
141140 color: Colours.palette.m3errorContainer
142141 onColor: Colours.palette.m3onErrorContainer
143142 text: qsTr("Kill")
144- onClicked: Hypr.dispatch(Hyprland .usingLua ? ` hl .dsp .window .kill ({ window = " address:0x${root.client?.address}" })` : ` killwindow address: 0x$ {root .client ? .address }` )
143+ onClicked: Hypr.dispatch(Hypr .usingLua ? ` hl .dsp .window .kill ({ window = " address:0x${root.client?.address}" })` : ` killwindow address: 0x$ {root .client ? .address }` );
145144 }
146145 }
147146
0 commit comments