mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 06:15:21 +01:00
[PR #949] [MERGED] feat!: support glob patterns for keyboard layout icons #5277
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#5277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/949
Author: @postsolar
Created: 4/27/2025
Status: ✅ Merged
Merged: 7/20/2025
Merged by: @JakeStanger
Base:
master← Head:kb-icon-globs📝 Commits (10+)
402234fSimplistic globbing for matching keyboard layout icons4cd90d4Merge branch 'JakeStanger:master' into kb-icon-globs05882d8UseIndexMapinstead ofHashMapfor keyboard layout icons mapdb6cb9eEnable featureserdeforindexmap29ada32Document wildcard matching for keyboard layoutsd1bbf5bEnableindexmap2feature flag forschemars537a2a8Add missing periodb674d9bMerge branch 'JakeStanger:master' into kb-icon-globs437d0f8Merge branch 'master' into kb-icon-globsbd6960dMerge branch 'master' into kb-icon-globs📊 Changes
4 files changed (+21 additions, -8 deletions)
View changed files
📝
Cargo.lock(+1 -0)📝
Cargo.toml(+3 -2)📝
docs/modules/Keyboard.md(+1 -1)📝
src/modules/keyboard.rs(+16 -5)📄 Description
The keyboard module now uses glob pattern matching instead of exact string matching when looking up the layout icon from the user-provided map. This allows users to define more flexible rules for displaying icons based on layout names, for example, using
*to match variations of a layout (en_*).This was implemented using the
wildmatchcrate.My usecase is that
this looks kinda ugly and hard to manage. I'd prefer to just have
"English *"instead.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.