mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-13 14:36:32 -04:00
fix(settings): surface Windows Rules Tab for Hyprland
- small hyprland parser update
This commit is contained in:
@@ -799,11 +799,7 @@ func (p *HyprlandWritableProvider) loadDMSRulesFromLua(data []byte, rulesPath st
|
|||||||
Actions: *acts,
|
Actions: *acts,
|
||||||
}
|
}
|
||||||
if wr.ID == "" {
|
if wr.ID == "" {
|
||||||
if wr.MatchCriteria.AppID != "" {
|
wr.ID = fmt.Sprintf("dms_rule_%d", len(rules))
|
||||||
wr.ID = wr.MatchCriteria.AppID
|
|
||||||
} else {
|
|
||||||
wr.ID = wr.MatchCriteria.Title
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
rules = append(rules, wr)
|
rules = append(rules, wr)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ Rectangle {
|
|||||||
"text": I18n.tr("Window Rules"),
|
"text": I18n.tr("Window Rules"),
|
||||||
"icon": "select_window",
|
"icon": "select_window",
|
||||||
"tabIndex": 28,
|
"tabIndex": 28,
|
||||||
"niriOnly": true
|
"hyprlandNiriOnly": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user