2019-03-14 21:34:29 +00:00
|
|
|
- name: "Install i3 packages"
|
|
|
|
aur:
|
|
|
|
skip_installed: true
|
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
|
|
|
when: "item not in installed_packages.stdout_lines"
|
|
|
|
with_items:
|
2019-05-25 16:50:09 +01:00
|
|
|
- 'arandr'
|
2019-03-14 21:34:29 +00:00
|
|
|
- 'betterlockscreen'
|
|
|
|
- 'brightnessctl'
|
|
|
|
- 'compton'
|
|
|
|
- 'dmenu'
|
|
|
|
- 'dunst'
|
|
|
|
- 'feh'
|
|
|
|
- 'flameshot'
|
|
|
|
- 'i3-gaps'
|
2019-05-27 15:52:21 +01:00
|
|
|
- 'i3lock-color'
|
2019-05-25 16:50:09 +01:00
|
|
|
- 'lxrandr'
|
2019-03-14 21:34:29 +00:00
|
|
|
- 'lxqt-policykit'
|
|
|
|
- 'aur/polybar'
|
2019-05-25 16:50:09 +01:00
|
|
|
- 'redshift'
|
2019-03-14 21:34:29 +00:00
|
|
|
- 'rofi'
|
|
|
|
- 'tbg'
|
2019-04-14 21:13:49 +01:00
|
|
|
- 'xdotool'
|
2019-03-14 21:34:29 +00:00
|
|
|
|
|
|
|
|
2018-10-06 12:47:13 +01:00
|
|
|
- set_fact:
|
2018-11-18 20:26:59 +00:00
|
|
|
polybar_scripts: "{{ home }}/.config/polybar/polybar-scripts/polybar-scripts"
|
2018-10-06 12:47:13 +01:00
|
|
|
i3_config_files:
|
2018-10-06 12:53:09 +01:00
|
|
|
- {src: "i3.conf", dest: "{{ home }}/.config/i3/config"}
|
|
|
|
- {src: "i3status.conf", dest: "{{ home }}/.config/i3status/config"}
|
|
|
|
- {src: "compton.conf", dest: "{{ home }}/.config/compton.conf"}
|
|
|
|
- {src: "dunst.conf", dest: "{{ home }}/.config/dunst/dunstrc"}
|
2018-11-18 20:26:59 +00:00
|
|
|
- {src: "polybar.ini", dest: "{{ home }}/.config/polybar/config"}
|
2018-09-10 13:58:30 +01:00
|
|
|
|
2018-10-06 12:47:13 +01:00
|
|
|
- name: "Create i3 config file directories"
|
2018-10-06 15:02:04 +01:00
|
|
|
with_items: "{{ i3_config_files }}"
|
2018-10-06 12:47:13 +01:00
|
|
|
file:
|
|
|
|
path: '{{ item.dest | dirname }}'
|
|
|
|
state: directory
|
2018-09-17 17:22:15 +01:00
|
|
|
owner: "{{ user }}"
|
2018-10-06 12:47:13 +01:00
|
|
|
mode: 0755
|
2018-09-10 13:58:30 +01:00
|
|
|
|
2018-11-18 20:26:59 +00:00
|
|
|
- name: "i3 config files"
|
2018-10-06 15:02:04 +01:00
|
|
|
with_items: "{{ i3_config_files }}"
|
2018-11-18 20:26:59 +00:00
|
|
|
template:
|
2018-10-06 12:47:13 +01:00
|
|
|
src: './files/{{ item.src }}'
|
|
|
|
dest: '{{ item.dest }}'
|
2018-09-10 13:58:30 +01:00
|
|
|
mode: 0644
|
2018-09-17 17:22:15 +01:00
|
|
|
owner: "{{ user }}"
|
2018-10-08 20:38:41 +01:00
|
|
|
|
2019-03-14 08:41:04 +00:00
|
|
|
|
|
|
|
- name: "Create polybar config directory"
|
|
|
|
file:
|
|
|
|
path: '{{ home }}/.config/polybar/'
|
|
|
|
state: directory
|
|
|
|
owner: "{{ user }}"
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
|
2018-11-18 20:26:59 +00:00
|
|
|
- name: "Polybar scripts"
|
|
|
|
git:
|
2019-03-13 21:04:34 +00:00
|
|
|
repo: https://github.com/x70b1/polybar-scripts
|
2018-11-18 20:26:59 +00:00
|
|
|
dest: "{{ home }}/.config/polybar/polybar-scripts"
|
|
|
|
force: true
|
|
|
|
become: true
|
|
|
|
become_user: "{{ user }}"
|
|
|
|
|
|
|
|
- copy:
|
|
|
|
src: ./files/launch-polybar.sh
|
|
|
|
dest: "{{ home }}/.config/polybar/launch.sh"
|
|
|
|
mode: 0755
|
|
|
|
owner: "{{ user }}"
|
|
|
|
group: users
|
|
|
|
|
2018-10-08 20:38:41 +01:00
|
|
|
|
2019-03-14 21:34:29 +00:00
|
|
|
- name: "Create rofi config directory"
|
|
|
|
file:
|
|
|
|
path: '{{ home }}/.config/rofi/'
|
|
|
|
state: directory
|
|
|
|
owner: "{{ user }}"
|
|
|
|
mode: 0755
|
2018-10-08 20:38:41 +01:00
|
|
|
|
2019-03-14 21:34:29 +00:00
|
|
|
- name: "Create rofi config"
|
|
|
|
copy:
|
2019-03-14 21:56:01 +00:00
|
|
|
src: './files/rofi.conf'
|
2019-03-14 21:34:29 +00:00
|
|
|
dest: '{{ home }}/.config/rofi/config'
|
|
|
|
mode: 0644
|
|
|
|
owner: "{{ user }}"
|
2019-04-14 21:08:41 +01:00
|
|
|
|
|
|
|
- name: Install pranklock
|
|
|
|
get_url:
|
|
|
|
url: https://raw.githubusercontent.com/RealOrangeOne/pranklock/master/pranklock
|
|
|
|
dest: /usr/bin/pranklock
|
|
|
|
mode: 0755
|
2019-04-14 21:24:35 +01:00
|
|
|
force: true
|