From 8ee59b6b583dc24a1e93d20ed06b4e8e48ce710c Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 10 Sep 2026 16:45:11 +0200 Subject: [PATCH] Fix logout dispatch syntax and set default cursor monitor Bar.qml: logout button still used the classic "hyprctl dispatch exit" string, which breaks under the Lua config's dispatch protocol just like the workspace/window-switcher clicks did. Switched to hl.dsp.exit(), matching the SUPER+SHIFT+E keybind already in hyprland.lua. hyprland.lua: set cursor.default_monitor to the primary (HKC) monitor. This was never configured before, so Hyprland picked its own default at startup, which landed the cursor/focus on the LG monitor (workspace 5) instead of the primary one (workspace 1) on login. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94 --- hypr/hyprland.lua | 7 +++++++ quickshell/default/Bar.qml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hypr/hyprland.lua b/hypr/hyprland.lua index ddf23f0..6220de5 100644 --- a/hypr/hyprland.lua +++ b/hypr/hyprland.lua @@ -40,6 +40,13 @@ hl.monitor({ sdr_max_luminance = 80, }) +-- Cursor (and thus initial focus/workspace) should start on the primary monitor +hl.config({ + cursor = { + default_monitor = "desc:HKC OVERSEAS LIMITED 27E6QC 0000000000001", + }, +}) + -- ---------------------------------------------------------- -- Environment diff --git a/quickshell/default/Bar.qml b/quickshell/default/Bar.qml index cb837cd..b0033f1 100644 --- a/quickshell/default/Bar.qml +++ b/quickshell/default/Bar.qml @@ -224,7 +224,7 @@ Variants { Process { id: volDownProc; command: ["wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-"] } Process { id: volMuteProc; command: ["wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle"] } - Process { id: logoutProc; command: ["hyprctl", "dispatch", "exit"] } + Process { id: logoutProc; command: ["hyprctl", "dispatch", "hl.dsp.exit()"] } Process { id: rebootProc; command: ["systemctl", "reboot"] } Process { id: shutdownProc; command: ["systemctl", "poweroff"] }