From 1ab6e069188cc7924bd5643dc1c9018028e707e3 Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Mon, 24 Jun 2019 14:46:40 +0200 Subject: [PATCH] diable screen saver --- defaults/main.yml | 2 ++ templates/config.j2 | 6 +++++- vars/main.yml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index dedb701..44c6f15 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -39,3 +39,5 @@ i3wm_user: "{{ ansible_user_id }}" submodules_versioncheck: true i3wm_copy_wallpapers: true + +disable_screensaver: true diff --git a/templates/config.j2 b/templates/config.j2 index 9d1bff3..062032c 100644 --- a/templates/config.j2 +++ b/templates/config.j2 @@ -160,7 +160,11 @@ exec sleep 2 && xrandr {% for monitor in i3_monitors %} --output {{ monitor.outp exec_always feh --bg-scale {{ i3_desktop_background }} {% endif %} - +{% if disable_screensaver | bool %} +# Disable screensaver by default +exec xset s off +exec xset -dpms +{% endif %} exec compton # Start Default Applications diff --git a/vars/main.yml b/vars/main.yml index 1121e5f..1a08541 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -33,5 +33,5 @@ __i3_workspaces: user: "{{ i3wm_user }}" -playbook_version_number: 9005 # should be over ninethousand +playbook_version_number: 9006 # should be over ninethousand playbook_version_path: '/etc/ansible-version/role-i3wm_chaos-bodensee_github.com.version'