mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
qs: hyprland dispatcher fixes
This commit is contained in:
@@ -230,7 +230,7 @@ HBarWidgetWithPopout {
|
||||
materialSymbol: toFloat ? "picture_in_picture_center" : "side_navigation"
|
||||
text: toFloat ? Translation.tr("Float") : Translation.tr("Tile")
|
||||
onClicked: {
|
||||
Hyprland.dispatch(`togglefloating address:${root.activeHyprlandClient.address}`)
|
||||
Hyprland.dispatch(`hl.dsp.window.float({action = "toggle", window = {address=${root.activeHyprlandClient.address}}})`)
|
||||
HyprlandData.updateWindowList()
|
||||
}
|
||||
}
|
||||
@@ -244,7 +244,7 @@ HBarWidgetWithPopout {
|
||||
colBackground: Appearance.colors.colError
|
||||
colForeground: Appearance.colors.colOnError
|
||||
onClicked: {
|
||||
Hyprland.dispatch(`killwindow address:${root.activeHyprlandClient.address}`)
|
||||
Hyprland.dispatch(`hl.dsp.window.kill({window = {address=${root.activeHyprlandClient.address}}})`)
|
||||
HyprlandData.updateWindowList()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ HBarWidgetContainer {
|
||||
}
|
||||
|
||||
function switchWorkspaceToHovered() {
|
||||
Hyprland.dispatch(`workspace ${wsModel.getWorkspaceIdAt(hoverIndex)}`)
|
||||
Hyprland.dispatch(`hl.dsp.focus({workspace = ${wsModel.getWorkspaceIdAt(hoverIndex)}})`)
|
||||
}
|
||||
onPressed: (mouse) => {
|
||||
if (mouse.button == Qt.LeftButton)
|
||||
@@ -72,9 +72,9 @@ HBarWidgetContainer {
|
||||
}
|
||||
onWheel: (event) => {
|
||||
if (event.angleDelta.y < 0)
|
||||
Hyprland.dispatch(`workspace r+1`);
|
||||
Hyprland.dispatch(`hl.dsp.focus({workspace = "r+1"})`);
|
||||
else if (event.angleDelta.y > 0)
|
||||
Hyprland.dispatch(`workspace r-1`);
|
||||
Hyprland.dispatch(`hl.dsp.focus({workspace = "r-1"})`);
|
||||
}
|
||||
|
||||
// Indications
|
||||
|
||||
Reference in New Issue
Block a user