From 62b51aca093e7224cc7ca4d17e1ae54b78a9d117 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Sun, 18 Oct 2015 16:46:55 -0700 Subject: [PATCH] add srandrd for automagic monitor detection --- roles/x/tasks/main.yml | 1 + roles/x/tasks/srandrd.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 roles/x/tasks/srandrd.yml diff --git a/roles/x/tasks/main.yml b/roles/x/tasks/main.yml index 99b7f99..88d6742 100644 --- a/roles/x/tasks/main.yml +++ b/roles/x/tasks/main.yml @@ -20,4 +20,5 @@ - include: unclutter.yml - include: volwheel.yml - include: autorandr.yml +- include: srandrd.yml - include: termite.yml diff --git a/roles/x/tasks/srandrd.yml b/roles/x/tasks/srandrd.yml new file mode 100644 index 0000000..9c941d2 --- /dev/null +++ b/roles/x/tasks/srandrd.yml @@ -0,0 +1,16 @@ +--- +- name: Download srandrd + command: cower -dq srandrd + chdir=/home/{{ user.name }}/{{ aur.dir }} + creates=/home/{{ user.name }}/{{ aur.dir }}/srandrd + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Build and install srandrd + command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/srandrd" + tags: + - aur + become: yes + become_user: "{{ user.name }}"