Fix whitespaces in templates
This commit is contained in:
parent
bfd2d6ca03
commit
28a08ec28e
5 changed files with 18 additions and 17 deletions
|
@ -4,9 +4,10 @@ set -eu
|
|||
|
||||
background() {
|
||||
swaybg \
|
||||
{% for monitor in hostvars[ansible_hostname]['monitors'] -%}
|
||||
-o "{{ monitor['desc'] }}" -i ~/.config/background/{{ monitor['background']['file'] }} -m {{ monitor['background']['mode'] }} {%- if not loop.last %}\{% endif %}
|
||||
{% endfor %}
|
||||
{% for monitor in hostvars[ansible_hostname]['monitors'] %}
|
||||
-o "{{ monitor['desc'] }}" -i ~/.config/background/{{ monitor['background']['file'] }} -m {{ monitor['background']['mode'] }} {%- if not loop.last %} \{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
idle() {
|
||||
|
@ -23,9 +24,10 @@ lock() {
|
|||
exit 1
|
||||
else
|
||||
swaylock -f -e -s fill --indicator-radius 150 \
|
||||
{% for monitor in hostvars[ansible_hostname]['monitors'] -%}
|
||||
-i {{ monitor['output'] }}:~/.config/background/lock-{{ monitor['background']['file'] }} {%- if not loop.last %}\{% endif %}
|
||||
{% endfor %}
|
||||
{% for monitor in hostvars[ansible_hostname]['monitors'] %}
|
||||
-i {{ monitor['output'] }}:~/.config/background/lock-{{ monitor['background']['file'] }} {%- if not loop.last %} \{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue