28 lines
776 B
YAML
28 lines
776 B
YAML
- name: Install waybar
|
|
become: true
|
|
ansible.builtin.apt:
|
|
pkg:
|
|
- waybar
|
|
- psmisc # killall command
|
|
- name: Create waybar config dir
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_env.HOME }}/.config/waybar"
|
|
state: directory
|
|
mode: '1770'
|
|
- name: Remove old config
|
|
notify: Restart waybar
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_env.HOME }}/.config/waybar/config"
|
|
state: absent
|
|
- name: Copy waybar config
|
|
notify: Restart waybar
|
|
ansible.builtin.copy:
|
|
src: files/waybar.jsonc
|
|
dest: "{{ ansible_env.HOME }}/.config/waybar/config.jsonc"
|
|
mode: '0660'
|
|
- name: Copy waybar styles
|
|
notify: Restart waybar
|
|
ansible.builtin.copy:
|
|
src: files/waybar.css
|
|
dest: "{{ ansible_env.HOME }}/.config/waybar/style.css"
|
|
mode: '0660'
|