diff options
| author | Xavier Lhinares <60365026+XLhinares@users.noreply.github.com> | 2026-03-15 16:17:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-15 19:17:49 +1100 |
| commit | 63c86e950b59ba1b29df367065ee2623b0335906 (patch) | |
| tree | e18790ab4dd006e8b3f872f218afdddfdbb7247b /config | |
| parent | nix: remove outdated app2unit version pin (#1266) (diff) | |
| download | caelestia-shell-63c86e950b59ba1b29df367065ee2623b0335906.tar.gz caelestia-shell-63c86e950b59ba1b29df367065ee2623b0335906.tar.bz2 caelestia-shell-63c86e950b59ba1b29df367065ee2623b0335906.zip | |
bar: allow setting custom workspace app icons in shell.json (#1214)
* bar: allow setting custom workspace app icons in shell.json
* rename to windowIcons and use regex field for regex
Also allow specifying regex flags and exact name
* add default config (fix steam icons)
---------
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Diffstat (limited to 'config')
| -rw-r--r-- | config/BarConfig.qml | 6 | ||||
| -rw-r--r-- | config/Config.qml | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/config/BarConfig.qml b/config/BarConfig.qml index 6254d94..2e04108 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -79,6 +79,12 @@ JsonObject { property string activeLabel: "" property string capitalisation: "preserve" // upper, lower, or preserve - relevant only if label is empty property list<var> specialWorkspaceIcons: [] + property list<var> windowIcons: [ + { + regex: "steam(_app_(default|[0-9]+))?", + icon: "sports_esports" + } + ] } component ActiveWindow: JsonObject { diff --git a/config/Config.qml b/config/Config.qml index 2a261e7..584aeba 100644 --- a/config/Config.qml +++ b/config/Config.qml @@ -176,7 +176,8 @@ Singleton { occupiedLabel: bar.workspaces.occupiedLabel, activeLabel: bar.workspaces.activeLabel, capitalisation: bar.workspaces.capitalisation, - specialWorkspaceIcons: bar.workspaces.specialWorkspaceIcons + specialWorkspaceIcons: bar.workspaces.specialWorkspaceIcons, + windowIcons: bar.workspaces.windowIcons }, activeWindow: { compact: bar.activeWindow.compact, |