From a3e9191b28b30d857044d7eb51dab09da4335255 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 8 Nov 2021 19:30:22 +0100 Subject: [PATCH] Update i3bar errors --- files/i3blocks/wlan | 0 tasks/config.yml | 33 +++++++++++++++++++++++++++------ vars/main.yml | 2 +- 3 files changed, 28 insertions(+), 7 deletions(-) mode change 100755 => 100644 files/i3blocks/wlan diff --git a/files/i3blocks/wlan b/files/i3blocks/wlan old mode 100755 new mode 100644 diff --git a/tasks/config.yml b/tasks/config.yml index ffd9ab9..795d2ac 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -40,11 +40,32 @@ owner: "{{ i3wm_user }}" group: "{{ i3wm_user }}" -- name: copy bin src folder - become: true - ansible.builtin.copy: - src: "{{ role_path }}/files/i3blocks/" - dest: "~/.config/i3blocks" - mode: 0755 +# todo: rewrite user stuff and support multiple users +- name: mkdir ~/.config/i3blocks/ + ansible.builtin.file: + path: ~/.config/i3blocks/ + state: directory + mode: '0755' owner: "{{ i3wm_user }}" group: "{{ i3wm_user }}" + +- name: copy i3blocks config + become: true + ansible.builtin.copy: + src: "files/i3blocks/config" + dest: "/home/{{ i3wm_user }}/.config/i3blocks/config" + mode: 0640 + owner: "{{ i3wm_user }}" + group: "{{ i3wm_user }}" + +- name: copy i3blocks config + become: true + ansible.builtin.copy: + src: "files/i3blocks/{{ item }}" + dest: "/home/{{ i3wm_user }}/.config/i3blocks/{{ item }}" + mode: 0750 + owner: "{{ i3wm_user }}" + group: "{{ i3wm_user }}" + with_items: + - 'volume' + - 'wlan' diff --git a/vars/main.yml b/vars/main.yml index c42b734..f550b9e 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -33,5 +33,5 @@ __i3_workspaces: user: "{{ i3wm_user }}" -playbook_version_number: 9021 # should be int +playbook_version_number: 9023 # should be int playbook_version_path: 'role-i3wm_chaos-bodensee_github.com.version'