Skip to content

[WIP] Fix Hyprland window rules configuration issue - #36

Closed
Logan-Fouts with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-hyprland-window-rules
Closed

Logan-Fouts with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-hyprland-window-rules

Conversation

Copilot AI commented May 18, 2026

Copy link
Copy Markdown
  • Inspect repository layout and current branch state
  • Check recent GitHub Actions workflow runs for CI context
  • Locate Hyprland config file(s) in the repository and confirm include paths
  • Update invalid idle_inhibit fullscreen true rules to valid Hyprland 0.54 syntax while preserving fullscreen-only behavior
  • Run available lint/test/build or targeted validation relevant to changed files
  • Manually verify the updated config content and keep comments/version guard intact
  • Run parallel validation (Code Review + CodeQL) and address any findings
Original prompt

The user wants a pull request created to fix a Hyprland window rules configuration issue in the repository Logan-Fouts/Daily-Grid.

Context from the user:

  • Docs reference: https://wiki.hypr.land/0.54.0/Configuring/Window-Rules/
  • The config is in pasted content.
  • The screenshot shows repeated errors:
    • Config error in file /home/lfouts/.config/hypr/windowrules.conf at line 15: idle_inhibit rule has unknown mode "fullscreen true"
    • same error repeated for lines 16 and 17
    • and hyprland.conf references the same failure.

Relevant pasted config excerpt includes these invalid rules:

windowrule = idle_inhibit fullscreen true, match:class ^(.*celluloid.*)$|^(.*mpv.*)$|^(.*vlc.*)$
windowrule = idle_inhibit fullscreen true, match:class ^(.*[Ss]potify.*)$
windowrule = idle_inhibit fullscreen true, match:class ^(.*LibreWolf.*)$|^(.*floorp.*)$|^(.*brave-browser.*)$|^(.*firefox.*)$|^(.*chromium.*)$|^(.*zen.*)$|^(.*vivaldi.*)$

The user also provided the full windowrules config content and a screenshot of the errors. Include the screenshot as reference:
image1

Task:

  1. Inspect the repository for the Hyprland configuration file(s), likely including windowrules.conf and any include from hyprland.conf.
  2. Update the invalid idle_inhibit rules to the correct syntax for Hyprland 0.54.0 per the linked docs.
  3. Preserve the user’s intended behavior: inhibit idle when matching media/browser apps are fullscreen.
  4. Ensure the rest of the config remains compatible with the newer windowrule syntax already used in the file.
  5. If there are comments/version guards in the file, keep them intact and minimally modify the file.
  6. Create a pull request with a concise explanation of the fix and why the previous syntax caused unknown mode "fullscreen true".

Expected outcome:

  • Config parses without the reported idle_inhibit mode errors.
  • Matching apps still inhibit idle in fullscreen as intended.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: fix my config heres the docs: https://wiki.hypr.land/0.54.0/Configuring/Window-Rules/
heres the issues:

Assistant: Please paste your Hyprland config and the exact issues you’re seeing.

Helpful things to include:

  • The relevant part of hyprland.conf, especially your windowrule / windowrulev2 lines
  • What behavior you want
  • What behavior is happening instead
  • Any error messages from Hyprland
  • If relevant, the app/window class/title you’re trying to match

If you want, use this format:

Goal:
- e.g. make Pavucontrol float and center

Current rules:
- paste rules here

What

User: ```
#░█░█ █ █▄░█ █▀▄ █▀█ █░█░█   █▀█ █░█ █░░ █▀▀ █▀
# ▀▄▀▄▀ █ █░▀█ █▄▀ █▄█ ▀▄▀▄▀   █▀▄ █▄█ █▄▄ ██▄ ▄█

# See https://wiki.hypr.land/Configuring/Window-Rules/

#? ------- WINDOWRULES_HYPRLAND_V_0_53 COMPATIBLE ----------------
#   This Config is compatible with windowrules changes in Hyprland v0.53+
#   Any future breaking changes disables this block and notifies the user to update.
#   User template files will be provided in $XDG_DATA_HOME/hyde/templates/hypr/windowrules.conf for manual update.

# hyprlang if WINDOWRULES_HYPRLAND_V_0_53

# idle_inhibit rules
windowrule = idle_inhibit fullscreen true, match:class ^(.*celluloid.*)$|^(.*mpv.*)$|^(.*vlc.*)$
windowrule = idle_inhibit fullscreen true, match:class ^(.*[Ss]potify.*)$
windowrule = idle_inhibit fullscreen true, match:class ^(.*LibreWolf.*)$|^(.*floorp.*)$|^(.*brave-browser.*)$|^(.*firefox.*)$|^(.*chromium.*)$|^(.*zen.*)$|^(.*vivaldi.*)$

# Picture-in-Picture
windowrule {
    name = hyde_picture_in_picture
    match:title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$
    tag = +picture-in-picture
    tag = +hyde_picture_in_picture
    float = true
    keep_aspect_ratio = true
    move = (monitor_w*0.73) (monitor_h*0.72)
    size = (monitor_w*0.25) (monitor_h*0.25)
    pin = true
}

windowrule = opacity 0.90 $& 0.90 $& 1,match:class ^(firefox)$
windowrule = opacity 0.90 $& 0.90 $& 1,match:class ^(zen)$
windowrule = opacity 0.90 $& 0.90 $& 1,match:class ^(brave-browser)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(code-oss)$
# windowrule = opacity 0.99 $& 0.99 $& 1,match:class ^([Cc]ode)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(code-url-handler)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(code-insiders-url-handler)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(kitty)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(org.kde.dolphin)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(org.kde.ark)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(nwg-look)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(qt5ct)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(qt6ct)$
windowrule = opacity 0.80 $& 0.80 $& 1,match:class ^(kvantummanager)$
windowrule = opacity 0.80 $& 0.70 $& 1,match:class ^(org.pulseaudio.pavucontrol)$
windowrule = opacity 0.80 $& 0.70 $& 1,match:class ^(blueman-manager)$...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

*This pull request was created from Copilot chat.*
>

Copilot AI requested a review from Logan-Fouts May 18, 2026 15:09
Copilot stopped work on behalf of Logan-Fouts due to an error May 18, 2026 15:09
@Logan-Fouts
Logan-Fouts deleted the copilot/fix-hyprland-window-rules branch May 18, 2026 15: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.

2 participants