summaryrefslogtreecommitdiffstats
path: root/roles/hyprshare/tasks
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-03-06 02:31:05 +0100
committerAhmed AbdelHalim <[email protected]>2026-03-06 03:11:08 +0100
commit2fc3cf85d46c20c8d4bd629cfd2293a8abeeaf9e (patch)
tree9498e241d517fb48a39af50462b3602c5dbfb414 /roles/hyprshare/tasks
parent57ffababe9ac8ec1c1417ba991dbbc6535f68fe9 (diff)
Add the role for installing sharing/w window previews
Diffstat (limited to 'roles/hyprshare/tasks')
-rw-r--r--roles/hyprshare/tasks/main.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/hyprshare/tasks/main.yml b/roles/hyprshare/tasks/main.yml
new file mode 100644
index 00000000..8fd53138
--- /dev/null
+++ b/roles/hyprshare/tasks/main.yml
@@ -0,0 +1,25 @@
+---
+- name: "Ensure hyprshare dependencies is installed"
+ become: true
+ ansible.builtin.package:
+ name:
+ - "slurp"
+ - "grim"
+ state: "present"
+
+- name: "Ensure hyprland-preview-share-picker AUR packages is installed"
+ become: true
+ become_user: "aur_builder"
+ kewlfft.aur.aur:
+ name: "hyprland-preview-share-picker"
+ state: "present"
+ use: "yay"
+
+# This is a workaround the installation failing
+# because the log file is created with aur_builder as an owner
+- name: "Ensure tmp log is removed"
+ become: true
+ ansible.builtin.file:
+ path: "/tmp/hyprland-preview-share-picker.log"
+ state: "absent"
+