20 lines
1.1 KiB
Text
20 lines
1.1 KiB
Text
|
|
{% assign mine_open = ' (button :class "ws-button-mine" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||
|
|
{% assign visible_open = ' (button :class "ws-button-visible" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||
|
|
{% assign busy_open = ' (button :class "ws-button-busy" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||
|
|
{% assign close = '`)' %}
|
||
|
|
{% assign unoccupied = ' (button :class "ws-button" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||
|
|
|
||
|
|
{{'(box :class "workspaces" :orientation "h" :space-evenly true :halign "start" :spacing 10'}}
|
||
|
|
{% for tag in workspace.tags %}
|
||
|
|
{% if tag.mine %}
|
||
|
|
{{mine_open}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ tag.name }}{{close}}
|
||
|
|
{% elsif tag.visible %}
|
||
|
|
{{visible_open}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ tag.name }}{{close}}
|
||
|
|
{% elsif tag.busy %}
|
||
|
|
{{busy_open}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ tag.name }}{{close}}
|
||
|
|
{% else %}
|
||
|
|
{{unoccupied}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ "·" }}{{close}}
|
||
|
|
{% endif %}
|
||
|
|
{% endfor %}
|
||
|
|
{{")"}}
|