Skip to content

Bring config.windowRules up to parity with available windowrulev2 fields #6

Open
@chaorace

Description

Hello, I'm a big fan of this flake and I've been using it for 6+ months now! Thanks for the great work 💯

Currently, it seems that only the class and title Window Rule fields are supported when defining rules via config.windowRules. This makes it impossible to define rules based on the other fields supported by the rule system (e.g.: workspace-specific rules).

Window rule fields missing from config.windowRules

Per the wiki:

  • workspace (name/id)
  • onworkspace (integer)
  • initialClass (regex)
  • initialTitle (regex)
  • floating (boolean)
  • focus (boolean)
  • fullscreen (boolean)
  • pinned (boolean)
  • xwayland (boolean)

Workaround

windowrulev2 lines can be manually added to the Hyprland config via config.extraConfig:

    extraConfig = ''
      windowrulev2 = workspace special:spotify2 silent,title:Spotify Premium
      windowrulev2 = opacity 0.85 0.66,workspace:name:special:scratch
      windowrulev2 = noshadow,workspace:name:special:scratch
      windowrulev2 = float,workspace:name:special:scratch
    '';

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions