lua-migration #1

Merged
nome merged 6 commits from lua-migration into master 2026-05-25 11:33:32 +02:00
Owner

Migration to lua due to 0.55 being lua compatible and hyperlang soon to be EOL.

Migration to lua due to 0.55 being lua compatible and hyperlang soon to be EOL.
Replace wayland.windowManager.hyprland.settings blocks with
home/hypr/common.lua + host-specific laptop.lua / desktop.lua.

hyprlang is deprecated since Hyprland 0.55 in favour of Lua.
Common config is require()'d from each host file via package.path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Swap DP-1/DP-2 positions in desktop.lua (right was mapped to left)
- Fix fullscreen mode "max" → "maximized" (invalid mode string)
- Comment out workspace.rename() — requires {workspace, name?} table,
  can't work as bare dispatcher; needs DMS IPC or script

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- workspace-rename was incorrectly migrated to hl.dsp.workspace.rename();
  restore to original: dms ipc call workspace-rename open
- SUPER+CTRL+F resized window to 100x100px (wrong); removed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- +/- resize used hl.dsp.window.resize which ignored negative values;
  swap to hyprctl dispatch for reliable percentage-based resize
- Same fix for code:20/21 pixel resize bindings
- dpms() with no args only turned off; use hyprctl dispatch dpms toggle
- Remove SUPER+[/] dwindle preselect — bracketleft/right unreachable
  on Norwegian keyboard layout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- dpms: use hl.dsp.dpms({ state = "toggle" }) instead of hyprctl dispatch
- resize +/-: use hyprctl dispatch resizeactive for correct percentage behavior
- resize code:20/21: same fix for pixel-based resize
- Remove SUPER+[/] dwindle preselect (unreachable on Norwegian keyboard)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
DMS was crashing on laptop boot because hyprland-session.target fires
before the Wayland socket is fully ready. Without a restart delay it
hits the systemd restart limit and stays dead (grey screen). Desktop
already had this fix; adding it to laptop.nix too.

Also updates CLAUDE.md and README.md to reflect the completed Lua
config migration and document the DMS timing issue.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
nome merged commit 673f454576 into master 2026-05-25 11:33:32 +02:00
nome deleted branch lua-migration 2026-05-25 11:33:32 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nome/nixos!1
No description provided.