From 4ac42e90217446ccb2d06e477b690c0a79528687 Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Tue, 11 Jun 2019 11:30:06 +0200 Subject: [PATCH] improve xrandr behavior improve behavior by adding a sleep at the beginning because command was too quick and did not made any changes --- templates/config.j2 | 6 +++--- vars/main.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/config.j2 b/templates/config.j2 index a2f5386..9d1bff3 100644 --- a/templates/config.j2 +++ b/templates/config.j2 @@ -153,7 +153,7 @@ bar { } # 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 {% if i3_desktop_background is defined %} @@ -165,11 +165,11 @@ exec compton # Start Default Applications {% for application in i3_applications if application.on_startup %} -exec {{ application.name }} +exec sleep 3 && {{ application.name }} {% endfor %} {% for app in i3_run_on_startup %} -exec {{ app }} +exec sleep 4 && {{ app }} {% endfor %} # Register Keybindings diff --git a/vars/main.yml b/vars/main.yml index 16dafe3..20a12e9 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -33,5 +33,5 @@ __i3_workspaces: 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'