Skip to content

feat(hyprland): migrate configuration to lua - #59

Merged
RAPSNX merged 2 commits into
feat/noctalia-shellfrom
feat/hyprland-lua
Aug 31, 2026
Merged

feat(hyprland): migrate configuration to lua#59
RAPSNX merged 2 commits into
feat/noctalia-shellfrom
feat/hyprland-lua

Conversation

@RAPSNX

@RAPSNX RAPSNX commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Migrate Hyprland configuration and keybinds from Hyprlang to Lua using configType = "lua" and extraLuaFiles
  • Organize settings into Lua modules (settings, rules, autostart, and keybinds)
  • Update Hyprland reference documentation with revised keybinds

Stacked on top of #56 (feat/noctalia-shell).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a0f7df09a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"autostart" = ''
hl.exec_once("[ workspace special:scratchy silent ] alacritty -t scratchy")
hl.exec_once("[ workspace special:aux silent ] sleep 2 && chromium --profile-directory=Default --app-id=dlgohinmglaoopaiplliaecdpmnepmga")
${lib.concatMapStringsSep "\n" (cmd: "hl.exec_once(\"${cmd}\")") cfg.autostart}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Escape autostart commands before embedding them in Lua

When a roles.desktop.hyprland.autostart entry contains quotes, backslashes, or a newline—for example, a command with a quoted shell argument—this interpolation inserts those characters directly into the Lua string, potentially changing the command or making the generated configuration invalid. The option accepts arbitrary strings and the previous Home Manager settings serializer escaped them, so serialize each command as a valid Lua-compatible quoted string instead of wrapping ${cmd} manually.

Useful? React with 👍 / 👎.

@RAPSNX
RAPSNX force-pushed the feat/hyprland-lua branch from a0f7df0 to 5e2054b Compare August 29, 2026 20:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e2054b0ab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +44 to +46
hl.bind("MOD5", "C", "exec, noctalia msg panel-toggle control-center calendar")
hl.bind("MOD5", "S", "exec, noctalia msg panel-toggle control-center monitor")
hl.bind("MOD5", "V", "exec, noctalia msg panel-toggle clipboard")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove MOD5 shortcuts that steal German characters

When the configured EurKEY or German layouts are active, MOD5 is AltGr, so these global bindings intercept character-entry combinations—most notably AltGr+S, which should type ß, but now opens the system monitor instead. This directly reintroduces the keyboard conflict documented in NOCTALIA_MODE_PLAN.md:3-8 and affects the layouts configured in default.nix:83-85; move these actions behind a non-AltGr shortcut or submap.

Useful? React with 👍 / 👎.

@RAPSNX
RAPSNX merged commit d7b82a9 into feat/noctalia-shell Aug 31, 2026
5 checks passed
@RAPSNX
RAPSNX deleted the feat/hyprland-lua branch August 31, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant