From 0be05816e70bc0cc3ab6bf812fbf5515eddd6b8e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 6 Mar 2026 03:09:35 +0100 Subject: Refactor hyprshare and abstract role dependencies --- roles/hyprshare/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roles/hyprshare/tasks') diff --git a/roles/hyprshare/tasks/main.yml b/roles/hyprshare/tasks/main.yml index 8fd53138..68d318ae 100644 --- a/roles/hyprshare/tasks/main.yml +++ b/roles/hyprshare/tasks/main.yml @@ -14,6 +14,7 @@ name: "hyprland-preview-share-picker" state: "present" use: "yay" + when: hyprshare_install_preview # This is a workaround the installation failing # because the log file is created with aur_builder as an owner @@ -22,4 +23,11 @@ ansible.builtin.file: path: "/tmp/hyprland-preview-share-picker.log" state: "absent" + when: hyprshare_install_preview +- name: "Template user share picker configuration" + ansible.builtin.template: + src: "xdph.conf.j2" + dest: "{{ ansible_facts['env']['HOME'] }}/.config/hypr/xdph.conf" + mode: "0644" + notify: "Restart xdg-desktop-portal-hyprland" -- cgit v1.2.3