Skip to content

Hyprland lua config - #10

Merged
DNAPrototypeX merged 3 commits into
mainfrom
hyprland-lua-config
Sep 4, 2026
Merged

DNAPrototypeX merged 3 commits into
mainfrom
hyprland-lua-config

Conversation

@DNAPrototypeX

Copy link
Copy Markdown
Owner

Switch to the new hyprland lua config. Have the first keystroke reveal the password field, and count as an input.

DNAPrototypeX and others added 2 commits September 4, 2026 14:42
Hyprland 0.56 reads a Lua configuration, and it plans to drop the older
`.conf` format. Both files that PSLDM ships now use Lua, and install.sh
writes the monitor modes as Lua.

- `packaging/greetd/hyprland.conf` becomes `hyprland.lua`. It reads the
  monitor file with `pcall(dofile, ...)`, so a missing file is not an error.
  The old `source =` line failed in that case.
- `packaging/hypr/psldm-lock.conf` becomes `psldm-lock.lua`.
- `/etc/psldm/monitors.conf` becomes `/etc/psldm/monitors.lua`, and it holds
  `hl.monitor` calls.

The greeter session also starts the compositor with `start-hyprland`, the
watchdog that Hyprland ships. It restarts the compositor after an unclean
exit, so a crash brings the greeter back instead of a text console. The
greeter still ends the compositor with `hyprctl dispatch exit`, which is a
clean exit, so greetd gets control back.

`Hyprland --verify-config` reports `config ok` for both files, and for a
`monitors.lua` written from a running desktop.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JoZyLsqdiAe7AAqdxvdvti
The screen showed the clock only, and the first key woke the pane. The pane
swallowed that key, so the user lost the first character of the password.

The pane now puts the character in the field. The field is still sliding in
and does not hold the keyboard yet, so the key controller writes the
character instead of letting the event through.

A new function, `typed_character`, drops a key that types nothing:

- A key held with Control, Alt, or Super runs a command somewhere else.
- A control character such as Escape or Tab is not part of a password.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JoZyLsqdiAe7AAqdxvdvti
@DNAPrototypeX DNAPrototypeX self-assigned this Sep 4, 2026
@DNAPrototypeX
DNAPrototypeX merged commit 3ef689f into main Sep 4, 2026
1 check passed
@DNAPrototypeX
DNAPrototypeX deleted the hyprland-lua-config branch September 9, 2026 16:12
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