From c4f9b20b23f1a161fb1f76d53711d1790cbdc7ba Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 19 Mar 2026 22:56:25 +0100 Subject: [PATCH] hefty: bar: ws: rmb for overview --- .../modules/hefty/topLayer/bar/widgets/HWorkspaces.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml index db4700967..7321f9be7 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml @@ -141,6 +141,7 @@ HBarWidgetContainer { z: 3 anchors.fill: parent cursorShape: Qt.PointingHandCursor + acceptedButtons: Qt.LeftButton | Qt.RightButton hoverEnabled: true property int hoverIndex: { const position = root.vertical ? mouseY : mouseX; @@ -150,8 +151,13 @@ HBarWidgetContainer { function switchWorkspaceToHovered() { Hyprland.dispatch(`workspace ${wsModel.getWorkspaceIdAt(hoverIndex)}`) } - onPressed: switchWorkspaceToHovered() - onWheel: event => { + onPressed: (mouse) => { + if (mouse.button == Qt.LeftButton) + switchWorkspaceToHovered() + else if (mouse.button == Qt.RightButton) + GlobalStates.overviewOpen = !GlobalStates.overviewOpen; + } + onWheel: (event) => { if (event.angleDelta.y < 0) Hyprland.dispatch(`workspace r+1`); else if (event.angleDelta.y > 0)