1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00

improve xrandr behavior

improve behavior by adding a sleep at the beginning because command was too quick
and did not made any changes
This commit is contained in:
Lilian Roller 2019-06-11 11:30:06 +02:00
parent af6f952347
commit 4ac42e9021
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 4 additions and 4 deletions

View file

@ -153,7 +153,7 @@ bar {
} }
# Setup Monitors # Setup Monitors
exec xrandr {% for monitor in i3_monitors %} --output {{ monitor.output }} --mode {{ monitor.mode }} --pos {{ monitor.pos }} --rotate {{ monitor.rotate }} {% endfor %} exec sleep 2 && xrandr {% for monitor in i3_monitors %} --output {{ monitor.output }} --mode {{ monitor.mode }} --pos {{ monitor.pos }} --rotate {{ monitor.rotate }} {% endfor %}
# Background # Background
{% if i3_desktop_background is defined %} {% if i3_desktop_background is defined %}
@ -165,11 +165,11 @@ exec compton
# Start Default Applications # Start Default Applications
{% for application in i3_applications if application.on_startup %} {% for application in i3_applications if application.on_startup %}
exec {{ application.name }} exec sleep 3 && {{ application.name }}
{% endfor %} {% endfor %}
{% for app in i3_run_on_startup %} {% for app in i3_run_on_startup %}
exec {{ app }} exec sleep 4 && {{ app }}
{% endfor %} {% endfor %}
# Register Keybindings # Register Keybindings

View file

@ -33,5 +33,5 @@ __i3_workspaces:
user: "{{ i3wm_user }}" user: "{{ i3wm_user }}"
playbook_version_number: 9003 # should be over ninethousand playbook_version_number: 9004 # should be over ninethousand
playbook_version_path: '/etc/ansible-version/role-i3wm_chaos-bodensee_github.com.version' playbook_version_path: '/etc/ansible-version/role-i3wm_chaos-bodensee_github.com.version'