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
commita38bb05301efe2fb179a8dd622e16e8fd70250cb (patch)
tree9498e241d517fb48a39af50462b3602c5dbfb414 /roles/hyprshare/tasks
parent1a197ba880a21e31bc9b8aa35fe2b1b09005d119 (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"
+