Skip to content

watch: Hyprland placement adapter for hyprlang configs #228

Closed

Description

@ElbertePlinio

Found while building the Hyprland adapter in #225 (issue #207).

The viewer's Hyprland placement adapter applies only when hyprctl -j status reports configProvider: "lua". Hyprland with a hyprlang config (0.53 and 0.54, or 0.56 without Lua) gets an ordinary window. Hyprland source at those tags supports named runtime rules through hyprctl keyword 'windowrule[<name>]:<field>' <value>, with enable false to turn one off. That syntax was checked in source only, not at runtime.

Acceptance criteria:

  • Detect a hyprlang config and install a named rule (float, pin, no_initial_focus, size, move) before launch, then disable it after the window maps.
  • Expand and collapse use the matching hyprlang dispatchers on the verified window address.
  • Verified at runtime on a hyprlang Hyprland, not only in unit tests with a fake hyprctl.

Checklist:

  • hyprlang rule install and disable
  • Resize and move dispatchers
  • Runtime check on a hyprlang instance

Activity

  1. added
    enhancement
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions