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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user