Add i3 and services tasks

This commit is contained in:
Jake Howard 2018-09-10 13:58:30 +01:00
parent 4d57f3bcdc
commit deb4469e27
Signed by: jake
GPG key ID: 57AFB45680EDD477
9 changed files with 44 additions and 2 deletions

View file

@ -10,3 +10,5 @@
- import_tasks: tasks/private.yml - import_tasks: tasks/private.yml
- import_tasks: tasks/vscode.yml - import_tasks: tasks/vscode.yml
- import_tasks: tasks/gnome.yml - import_tasks: tasks/gnome.yml
- import_tasks: tasks/i3.yml
- import_tasks: tasks/services.yml

View file

@ -31,11 +31,11 @@ block = "sound"
interval = 1 interval = 1
step_width = 2 step_width = 2
<% if @trusted['hostname'] == 'too-laptop' -%> {% if ansible_fqdn == "TOO-Laptop" %}
[[block]] [[block]]
block = "battery" block = "battery"
interval = 5 interval = 5
<% end -%> {% endif %}
[[block]] [[block]]
block = "time" block = "time"

34
tasks/i3.yml Normal file
View file

@ -0,0 +1,34 @@
- copy:
src: ./files/i3.conf
dest: /home/jake/.config/i3/config
mode: 0644
owner: jake
group: users
- copy:
src: ./files/i3status.conf
dest: /home/jake/.config/i3status/config
mode: 0644
owner: jake
group: users
- copy:
src: ./files/compton.conf
dest: /home/jake/.config/compton.conf
mode: 0644
owner: jake
group: users
- copy:
src: ./files/dunst.conf
dest: /home/jake/.config/dunst/dunstrc
mode: 0644
owner: jake
group: users
- template:
src: ./files/i3status-rust.toml
dest: /home/jake/.config/i3/status.toml
mode: 0644
owner: jake
group: users

6
tasks/services.yml Normal file
View file

@ -0,0 +1,6 @@
- copy:
src: ./files/powertop.service
dest: /etc/systemd/system/powertop.service
mode: 0644
owner: root
directory_mode: true