From f35f4188db7a621cddbe25257452399085091028 Mon Sep 17 00:00:00 2001 From: Johanna Dorothea Reichmann Date: Fri, 18 Sep 2020 22:08:40 +0200 Subject: [PATCH] i3: template config for xfce4+i3 --- i3.yml | 8 ++++++++ roles/i3/tasks/main.yml | 5 +---- roles/i3/templates/config.j2 | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 i3.yml diff --git a/i3.yml b/i3.yml new file mode 100644 index 0000000..e325553 --- /dev/null +++ b/i3.yml @@ -0,0 +1,8 @@ +--- + +- name: Template i3 config + hosts: all + become: true + roles: + - i3 + diff --git a/roles/i3/tasks/main.yml b/roles/i3/tasks/main.yml index 655b71d..68a4693 100644 --- a/roles/i3/tasks/main.yml +++ b/roles/i3/tasks/main.yml @@ -4,6 +4,7 @@ package: name: i3 state: present + ignore_errors: yes - name: Ensure folder for configuration exists file: @@ -16,7 +17,3 @@ src: config.j2 dest: ~/.config/i3/config -- name: Create autostart entry - template: - src: "" - dest: ~/.config/autostart/i3.desktop diff --git a/roles/i3/templates/config.j2 b/roles/i3/templates/config.j2 index 0201d94..2c6c17a 100644 --- a/roles/i3/templates/config.j2 +++ b/roles/i3/templates/config.j2 @@ -32,7 +32,7 @@ bindsym $mod+Shift+q kill bindsym $mod+d exec xfce4-popup-whiskermenu # Lock the screen -bindsym $mod+l exec i3lock +bindsym $mod+l exec xflock4 # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that