diff --git a/roles/grimshot/meta/main.yaml b/roles/grimshot/meta/main.yaml index e2f518b..23d65c7 100644 --- a/roles/grimshot/meta/main.yaml +++ b/roles/grimshot/meta/main.yaml @@ -1,3 +1,2 @@ --- -dependencies: - - role: aur_builder +dependencies: [] diff --git a/roles/grimshot/tasks/main.yml b/roles/grimshot/tasks/main.yml index 5a232a6..8d6ecbb 100644 --- a/roles/grimshot/tasks/main.yml +++ b/roles/grimshot/tasks/main.yml @@ -3,20 +3,29 @@ ansible.builtin.include_tasks: file: flameshot-cleanup.yml -- name: Install the optdepends +- name: Get rid of grimshot package from AUR become: true become_user: root community.general.pacman: name: - - wl-clipboard + - grimshot + state: absent -- name: Install grimshot from AUR +- name: Install the optdepends and sway-contrib become: true - become_user: aur_builder - kewlfft.aur.aur: + become_user: root + community.general.pacman: name: - - grimshot - state: present + - wl-clipboard + - sway-contrib + +- name: Symlink the grimshot script so it's in PATH + become: true + become_user: root + ansible.builtin.file: + src: "/usr/share/sway-contrib/grimshot" + dest: "/usr/local/bin/grimshot" + state: link - name: Ensure directory exists ansible.builtin.file: