2020-03-30 19:36:05 +01:00
|
|
|
- name: Install i3 packages
|
2019-03-14 21:34:29 +00:00
|
|
|
aur:
|
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2019-12-09 21:09:00 +00:00
|
|
|
loop:
|
2020-04-15 08:50:11 +01:00
|
|
|
- arandr
|
|
|
|
- brightnessctl
|
|
|
|
- picom
|
|
|
|
- dmenu
|
|
|
|
- dunst
|
|
|
|
- feh
|
|
|
|
- flameshot
|
|
|
|
- i3-gaps
|
|
|
|
- i3lock-color
|
|
|
|
- lxrandr
|
|
|
|
- lxqt-policykit
|
2020-06-15 12:36:54 +01:00
|
|
|
- polybar
|
2020-04-15 08:50:11 +01:00
|
|
|
- redshift
|
|
|
|
- rofi
|
|
|
|
- rofi-calc
|
2021-04-19 13:26:56 +01:00
|
|
|
- rofimoji
|
2020-04-15 08:50:11 +01:00
|
|
|
- xdotool
|
2020-04-04 20:46:00 +01:00
|
|
|
- xorg
|
2019-03-14 21:34:29 +00:00
|
|
|
|
|
|
|
|
2019-11-18 13:09:43 +00:00
|
|
|
- name: Set i3 variables
|
|
|
|
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:
|
2020-03-30 19:36:05 +01:00
|
|
|
- {src: i3.conf, dest: "{{ home }}/.config/i3/config"}
|
|
|
|
- {src: i3status.conf, dest: "{{ home }}/.config/i3status/config"}
|
|
|
|
- {src: picom.conf, dest: "{{ home }}/.config/picom.conf"}
|
|
|
|
- {src: dunst.conf, dest: "{{ home }}/.config/dunst/dunstrc"}
|
|
|
|
- {src: polybar.ini, dest: "{{ home }}/.config/polybar/config"}
|
2018-09-10 13:58:30 +01:00
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Create i3 config file directories
|
2019-12-09 21:09:00 +00:00
|
|
|
loop: "{{ i3_config_files }}"
|
|
|
|
loop_control:
|
|
|
|
label: "{{ item.src }}"
|
2018-10-06 12:47:13 +01:00
|
|
|
file:
|
2020-03-30 19:36:05 +01:00
|
|
|
path: "{{ item.dest | dirname }}"
|
2018-10-06 12:47:13 +01:00
|
|
|
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
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: i3 config files
|
2019-12-09 21:09:00 +00:00
|
|
|
loop: "{{ i3_config_files }}"
|
|
|
|
loop_control:
|
|
|
|
label: "{{ item.src }}"
|
2018-11-18 20:26:59 +00:00
|
|
|
template:
|
2020-03-30 19:36:05 +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
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Create polybar config directory
|
2019-03-14 08:41:04 +00:00
|
|
|
file:
|
2020-03-30 19:36:05 +01:00
|
|
|
path: "{{ home }}/.config/polybar/"
|
2019-03-14 08:41:04 +00:00
|
|
|
state: directory
|
|
|
|
owner: "{{ user }}"
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Polybar scripts
|
2018-11-18 20:26:59 +00:00
|
|
|
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 }}"
|
|
|
|
|
2019-11-18 13:09:43 +00:00
|
|
|
- name: Install Polybar launcher
|
|
|
|
copy:
|
2018-11-18 20:26:59 +00:00
|
|
|
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
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Create rofi config directory
|
2019-03-14 21:34:29 +00:00
|
|
|
file:
|
2020-03-30 19:36:05 +01:00
|
|
|
path: "{{ home }}/.config/rofi/"
|
2019-03-14 21:34:29 +00:00
|
|
|
state: directory
|
|
|
|
owner: "{{ user }}"
|
|
|
|
mode: 0755
|
2018-10-08 20:38:41 +01:00
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Create rofi config
|
2019-03-14 21:34:29 +00:00
|
|
|
copy:
|
2021-09-11 22:48:21 +01:00
|
|
|
src: ./files/rofi.rasi
|
|
|
|
dest: "{{ home }}/.config/rofi/config.rasi"
|
2019-03-14 21:34:29 +00:00
|
|
|
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
|
2019-10-14 13:31:53 +01:00
|
|
|
|
|
|
|
- name: Install Screen Layouts
|
|
|
|
copy:
|
|
|
|
src: ./files/screen-layouts
|
|
|
|
dest: "{{ home }}/.config"
|
|
|
|
mode: 0755
|
|
|
|
directory_mode: 0755
|
|
|
|
owner: "{{ user }}"
|
2021-10-11 20:45:42 +01:00
|
|
|
|
|
|
|
- name: Install screen lock script
|
|
|
|
copy:
|
|
|
|
src: ./files/lock-screen.sh
|
|
|
|
dest: "{{ home }}/.config/i3/lock.sh"
|
|
|
|
mode: 0755
|
|
|
|
owner: "{{ user }}"
|