- name: Install packages
become: true
apt:
pkg:
- i3-wm
- i3status
- i3lock
- rofi
- nitrogen
- xss-lock
- arandr
- autorandr
- brightnessctl
- name: Create i3 config directory
file:
path: ~/.config/i3
state: directory
- name: Copy i3 config
copy:
src: "{{ role_path }}/files/config"
dest: ~/.config/i3/config
- name: Copy scripts directory
src: "{{ role_path }}/files/scripts"
dest: ~/.config/i3
mode: preserve
- name: Copy wallpapers
src: "{{ role_path }}/files/wallpapers"
dest: ~/Pictures
- name: Create nitrogen config directory
path: ~/.config/nitrogen
- name: Copy nitrogen.cfg
src: "{{ role_path }}/files/nitrogen.cfg"
dest: ~/.config/nitrogen/nitrogen.cfg
- name: Copy bg-saved.cfg
src: "{{ role_path }}/files/bg-saved.cfg"
dest: ~/.config/nitrogen/bg-saved.cfg
- name: Handle lid close
ini_file:
path: /etc/systemd/logind.conf
section: Login
option: HandleLidSwitch
value: suspend
no_extra_spaces: true
- name: Copy autorandr configuration
src: "{{ role_path }}/files/autorandr/"
dest: ~/.config