diff options
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | config/BarConfig.qml | 1 | ||||
| -rw-r--r-- | utils/Icons.qml | 7 |
3 files changed, 15 insertions, 1 deletions
@@ -386,7 +386,13 @@ default, you must create it manually. "occupiedLabel": "", "perMonitorWorkspaces": true, "showWindows": true, - "shown": 5 + "shown": 5, + "specialWorkspaceIcons": [ + { + "name": "steam", + "icon": "sports_esports" + } + ] } }, "border": { diff --git a/config/BarConfig.qml b/config/BarConfig.qml index 0067bce..86c2a40 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -68,6 +68,7 @@ JsonObject { property string occupiedLabel: "" property string activeLabel: "" property string capitalisation: "preserve" // upper, lower, or preserve - relevant only if label is empty + property list<var> specialWorkspaceIcons: [] } component Tray: JsonObject { diff --git a/utils/Icons.qml b/utils/Icons.qml index 45c1537..e946c4f 100644 --- a/utils/Icons.qml +++ b/utils/Icons.qml @@ -194,6 +194,13 @@ Singleton { function getSpecialWsIcon(name: string): string { name = name.toLowerCase().slice("special:".length); + + for (const iconConfig of Config.bar.workspaces.specialWorkspaceIcons) { + if (iconConfig.name === name) { + return iconConfig.icon; + } + } + if (name === "special") return "star"; if (name === "communication") |