summaryrefslogtreecommitdiffstats
path: root/roles/hyprshare/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-03-06 03:09:35 +0100
committerAhmed Abdelhalim <[email protected]>2026-03-06 03:29:52 +0100
commit0be05816e70bc0cc3ab6bf812fbf5515eddd6b8e (patch)
tree9c90647cc0801a8742d7d6ea544dc6b9a3e6dc22 /roles/hyprshare/tasks
parenta38bb05301efe2fb179a8dd622e16e8fd70250cb (diff)
Refactor hyprshare and abstract role dependencies
Diffstat (limited to 'roles/hyprshare/tasks')
-rw-r--r--roles/hyprshare/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
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"