Commit Graph
2 Commits
Author SHA1 Message Date
burbschat d6f9dc911a Apply format according to .clang-format 2025-06-14 22:59:32 +09:00
burbschat 9b6590b972 Add CSS classes for sway workspace indicators depending on associated output
Allows for different styles of workspace indicators (buttons) depending
on the output the workspace is located at.
Using this one can for example color the indicators depending on the
output making it easy to infer on which output a workspace is located.

Example config:

"sway/workspaces": {
    "all-outputs": true,
    "format": "{name}",
    "output-classes": {
        "DP-1": "output1",
        "LVDS-2": "output2"
    }
}

Example CSS:

#workspaces button.output1{
    background-color: green;
}
#workspaces button.output2{
    background-color: blue;
}
2025-06-14 22:40:58 +09:00