diff --git a/arch/roles/gui/meta/main.yml b/arch/roles/gui/meta/main.yml new file mode 100644 index 0000000..5195743 --- /dev/null +++ b/arch/roles/gui/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - kewlfft.aur diff --git a/arch/roles/gui/tasks/main.yml b/arch/roles/gui/tasks/main.yml index eadf28e..2c38672 100644 --- a/arch/roles/gui/tasks/main.yml +++ b/arch/roles/gui/tasks/main.yml @@ -14,3 +14,65 @@ owner: root group: root mode: u=rw,g=r,o=r + +- name: Install graphical programs + become: yes + pacman: + name: + - firefox + - xterm + - rofi + - python-pywal + - feh + - dunst + - picom + state: present + +- name: Install graphical AUR programs + aur: + name: + - rofi-dmenu + - polybar + state: present + +- name: Configure X + command: + chdir: "{{ ansible_env.HOME }}/dotfiles" + cmd: "stow X" + creates: "~/.Xresources" + +- name: Configure rofi + command: + chdir: "{{ ansible_env.HOME }}/dotfiles" + cmd: "stow rofi" + creates: "~/.config/rofi/config.rasi" + +- name: Configure wal + command: + chdir: "{{ ansible_env.HOME }}/dotfiles" + cmd: "stow wal" + creates: "~/bin/run-wal-hooks.sh" + +- name: Configure dunst + command: + chdir: "{{ ansible_env.HOME }}/dotfiles" + cmd: "stow dunst" + creates: "~/.config/dunst/dunstrc" + +- name: Configure feh + command: + chdir: "{{ ansible_env.HOME }}/dotfiles" + cmd: "stow feh" + creates: "~/.config/wal/hooks/00-feh.sh" + +- name: Configure picom + command: + chdir: "{{ ansible_env.HOME }}/dotfiles" + cmd: "stow picom" + creates: "~/.config/picom.conf" + +- name: Configure polybar + command: + chdir: "{{ ansible_env.HOME }}/dotfiles" + cmd: "stow polybar" + creates: "~/.config/polybar/config"