2024-04-11 22:58:56 +05:00
|
|
|
- name: Install waybar
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
pkg:
|
|
|
|
- waybar
|
|
|
|
- psmisc # killall command
|
|
|
|
- name: Create waybar config dir
|
|
|
|
ansible.builtin.file:
|
2024-04-13 14:25:16 +05:00
|
|
|
path: "{{ ansible_env.HOME }}/.config/waybar"
|
2024-04-11 22:58:56 +05:00
|
|
|
state: directory
|
|
|
|
mode: '1770'
|
2024-04-13 14:25:16 +05:00
|
|
|
- name: Remove old config
|
|
|
|
notify: Restart waybar
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ ansible_env.HOME }}/.config/waybar/config"
|
|
|
|
state: absent
|
2024-04-11 22:58:56 +05:00
|
|
|
- name: Copy waybar config
|
|
|
|
notify: Restart waybar
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: files/waybar.jsonc
|
2024-04-13 14:25:16 +05:00
|
|
|
dest: "{{ ansible_env.HOME }}/.config/waybar/config.jsonc"
|
2024-04-11 22:58:56 +05:00
|
|
|
mode: '0660'
|
|
|
|
- name: Copy waybar styles
|
|
|
|
notify: Restart waybar
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: files/waybar.css
|
2024-04-13 14:25:16 +05:00
|
|
|
dest: "{{ ansible_env.HOME }}/.config/waybar/style.css"
|
2024-04-11 22:58:56 +05:00
|
|
|
mode: '0660'
|