From c53e9891cb27ec76efe508d8acceb9b64a51d8e9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 12 May 2026 12:07:33 +0200 Subject: [PATCH] qs: fix super key hold state properly --- dots/.config/hypr/hyprland/keybinds.lua | 2 ++ dots/.config/quickshell/ii/GlobalStates.qml | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua index c98becd0f..8a9490fbf 100644 --- a/dots/.config/hypr/hyprland/keybinds.lua +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -13,6 +13,8 @@ hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd(qsIsAlive.." || pkill fuzzel || fuzze hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) hl.bind("SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) +hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true, release = true} ) +hl.bind("SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true, release = true} ) hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle"), {description = "Toggle overview"} ) hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) diff --git a/dots/.config/quickshell/ii/GlobalStates.qml b/dots/.config/quickshell/ii/GlobalStates.qml index ef178f85d..bfb531e6e 100644 --- a/dots/.config/quickshell/ii/GlobalStates.qml +++ b/dots/.config/quickshell/ii/GlobalStates.qml @@ -38,15 +38,15 @@ Singleton { } } - // GlobalShortcut { - // name: "workspaceNumber" - // description: "Hold to show workspace numbers, release to show icons" + GlobalShortcut { + name: "workspaceNumber" + description: "Hold to show workspace numbers, release to show icons" - // onPressed: { - // root.superDown = true - // } - // onReleased: { - // root.superDown = false - // } - // } + onPressed: { + root.superDown = true + } + onReleased: { + root.superDown = false + } + } } \ No newline at end of file