Moved i3 config file setup to user-account role

This commit is contained in:
mandlm 2021-03-06 16:08:44 +01:00
parent def18de9c9
commit 7178d38842
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
4 changed files with 16 additions and 31 deletions

View File

@ -91,6 +91,21 @@
permissions: r permissions: r
state: present state: present
- name: ensure i3 config-dir exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/.config/i3"
state: directory
mode: "0700"
- name: install i3 config
become_user: "{{ account.name }}"
copy:
src: i3/config
dest: "/home/{{ account.name }}/.config/i3/config"
mode: "0644"
force: no
- name: ensure i3status config-dir exists - name: ensure i3status config-dir exists
become_user: "{{ account.name }}" become_user: "{{ account.name }}"
file: file:
@ -104,4 +119,5 @@
src: i3status/config src: i3status/config
dest: "/home/{{ account.name }}/.config/i3status/config" dest: "/home/{{ account.name }}/.config/i3status/config"
mode: "0644" mode: "0644"
force: yes

View File

@ -1,17 +0,0 @@
general {
colors = true
interval = 5
}
order += "battery all"
order += "tztime local"
battery all {
format = "%status %percentage %remaining"
format_down = ""
last_full_capacity = true
}
tztime local {
format = "%d.%m.%Y %H:%M"
}

View File

@ -37,17 +37,3 @@
command: command:
cmd: localectl --no-convert set-x11-keymap de pc105 nodeadkeys cmd: localectl --no-convert set-x11-keymap de pc105 nodeadkeys
creates: /etc/X11/xorg.conf.d/00-keyboard.conf creates: /etc/X11/xorg.conf.d/00-keyboard.conf
- name: install i3 config
become_user: "{{ account.name }}"
copy:
src: config/i3/config
dest: "/home/{{ account.name }}/.config/i3/config"
force: no
- name: install i3status config
become_user: "{{ account.name }}"
copy:
src: config/i3status/config
dest: "/home/{{ account.name }}/.config/i3status/config"
force: yes