Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
handle device:name properly
Browse files Browse the repository at this point in the history
  • Loading branch information
abs3ntdev committed Jan 5, 2023
1 parent fa67fd1 commit 5fd5b49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func ReadHyprlandConfig(flags *flags.Flags) (*ConfigValues, error) {
func getCategory(check string, categories []string) (string, bool) {
for _, cat := range categories {
if strings.HasPrefix(strings.ToLower(check), cat) {
return cat, true
categoryName := strings.TrimSpace(strings.TrimSuffix(check, "{"))
return categoryName, true
}
}
return "", false
Expand Down

0 comments on commit 5fd5b49

Please sign in to comment.