From ee6d0a9909240663a2bd6994f54a4249ff23f230 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 7 Jul 2020 09:15:24 -0400 Subject: [PATCH] Install/configure graphical programs --- arch/roles/gui/meta/main.yml | 2 ++ arch/roles/gui/tasks/main.yml | 62 +++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 arch/roles/gui/meta/main.yml 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"