From 6991b45fbea7be89544aeee47ebfff072044f2eb Mon Sep 17 00:00:00 2001 From: purian23 Date: Wed, 3 Jun 2026 17:39:44 -0400 Subject: [PATCH] fix(settings): surface Windows Rules Tab for Hyprland - small hyprland parser update --- core/internal/windowrules/providers/hyprland_parser.go | 6 +----- quickshell/Modals/Settings/SettingsSidebar.qml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/core/internal/windowrules/providers/hyprland_parser.go b/core/internal/windowrules/providers/hyprland_parser.go index 3c31663d..aa4c6582 100644 --- a/core/internal/windowrules/providers/hyprland_parser.go +++ b/core/internal/windowrules/providers/hyprland_parser.go @@ -799,11 +799,7 @@ func (p *HyprlandWritableProvider) loadDMSRulesFromLua(data []byte, rulesPath st Actions: *acts, } if wr.ID == "" { - if wr.MatchCriteria.AppID != "" { - wr.ID = wr.MatchCriteria.AppID - } else { - wr.ID = wr.MatchCriteria.Title - } + wr.ID = fmt.Sprintf("dms_rule_%d", len(rules)) } rules = append(rules, wr) } diff --git a/quickshell/Modals/Settings/SettingsSidebar.qml b/quickshell/Modals/Settings/SettingsSidebar.qml index b4668246..54d50771 100644 --- a/quickshell/Modals/Settings/SettingsSidebar.qml +++ b/quickshell/Modals/Settings/SettingsSidebar.qml @@ -311,7 +311,7 @@ Rectangle { "text": I18n.tr("Window Rules"), "icon": "select_window", "tabIndex": 28, - "niriOnly": true + "hyprlandNiriOnly": true } ] },