Use Lua dispatches and options for Hyprland 0.57

Hyprland 0.57 removed hyprctl keyword and name-style dispatches, and
hyprglass 1.1 dropped its layer namespace options. Move workspace, window,
logout, glass and Game Mode calls to hl.dsp and hyprctl eval.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-06 20:39:45 +01:00
1 parent bfbfc8961e
commit c716a20e04
6 files changed
+31 -13

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ Singleton {
if (window.handle)
window.handle.activate();
else if (/^(0x)?[0-9a-f]+$/i.test(address))
Hyprland.dispatch("focuswindow address:" + (address.startsWith("0x") ? address : "0x" + address));
Hyprland.dispatch("hl.dsp.focus({ window = 'address:" + (address.startsWith("0x") ? address : "0x" + address) + "' })");
else
return false;
return true;
@@ -56,7 +56,7 @@ Singleton {
if (window.handle)
window.handle.close();
else if (/^(0x)?[0-9a-f]+$/i.test(address))
Hyprland.dispatch("closewindow address:" + (address.startsWith("0x") ? address : "0x" + address));
Hyprland.dispatch("hl.dsp.window.close({ window = 'address:" + (address.startsWith("0x") ? address : "0x" + address) + "' })");
else
return false;
return true;