-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheww.liquid
19 lines (18 loc) · 1.12 KB
/
eww.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% 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 5'}}
{% 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 tag.visible %}
{{unoccupied}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}} {{ tag.name }} {{close}}
{% endif %}
{% endfor %}
{{")"}}