summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Seger <pixelkhaos@gmail.com>2025-10-13 13:52:14 +0200
committerGitHub <noreply@github.com>2025-10-13 22:52:14 +1100
commite399a9d7a34a13d2a783fc4e591cadabdd20423e (patch)
tree2de9081b068eeb09561fdb2f41c3eeb62fa61383
parentfeat: configurable max volume (#723) (diff)
downloadcaelestia-shell-e399a9d7a34a13d2a783fc4e591cadabdd20423e.tar.gz
caelestia-shell-e399a9d7a34a13d2a783fc4e591cadabdd20423e.tar.bz2
caelestia-shell-e399a9d7a34a13d2a783fc4e591cadabdd20423e.zip
bar/workspaces: special ws icon config (#785)
* workspaces: icons config * add README json example
-rw-r--r--README.md8
-rw-r--r--config/BarConfig.qml1
-rw-r--r--utils/Icons.qml7
3 files changed, 15 insertions, 1 deletions
diff --git a/README.md b/README.md
index d8be30a..64873e9 100644
--- a/README.md
+++ b/README.md
@@ -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")