summaryrefslogtreecommitdiffstats
path: root/roles/hyprland
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/hyprland
parent1a197ba880a21e31bc9b8aa35fe2b1b09005d119 (diff)
Add the role for installing sharing/w window previews
Diffstat (limited to 'roles/hyprland')
-rw-r--r--roles/hyprland/meta/main.yml1
-rw-r--r--roles/hyprland/tasks/main.yml13
-rw-r--r--roles/hyprland/templates/hypr/xdph.conf.j25
3 files changed, 19 insertions, 0 deletions
diff --git a/roles/hyprland/meta/main.yml b/roles/hyprland/meta/main.yml
index 47d97237..0e580298 100644
--- a/roles/hyprland/meta/main.yml
+++ b/roles/hyprland/meta/main.yml
@@ -19,6 +19,7 @@ dependencies:
- role: "tofi"
- role: "hyprcursor"
- role: "hyprtheme"
+ - role: "hyprshare"
galaxy_info:
author: "a14m"
description: "Install hyprland"
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index 69e91c54..c0135a4e 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -76,6 +76,8 @@
dest: "/etc/hypr/hyprlock.conf"
- src: "hypr/hypridle.conf.j2"
dest: "/etc/hypr/hypridle.conf"
+ - src: "hypr/xdph.conf.j2"
+ dest: "/etc/hypr/xdph.conf"
- src: "hypr/hyprland.conf.j2"
dest: "/etc/hypr/hyprland.conf"
- src: "uwsm/env.j2"
@@ -109,6 +111,17 @@
# System defaults
source = /etc/hypr/hypridle.conf
+ - name: "Configure user xdg-desktop-portal-hyprland"
+ ansible.builtin.blockinfile:
+ path: "{{ ansible_facts['env']['HOME'] }}/.config/hypr/xdph.conf"
+ state: "present"
+ prepend_newline: true
+ append_newline: true
+ marker: "# ==== {mark} ANSIBLE HYPRSHARE CONFIG"
+ block: |
+ # System defaults
+ source = /etc/hypr/xdph.conf
+
- name: "Copy hyprland scripts"
become: true
ansible.builtin.copy:
diff --git a/roles/hyprland/templates/hypr/xdph.conf.j2 b/roles/hyprland/templates/hypr/xdph.conf.j2
new file mode 100644
index 00000000..0e4b8119
--- /dev/null
+++ b/roles/hyprland/templates/hypr/xdph.conf.j2
@@ -0,0 +1,5 @@
+screencopy {
+ max_fps = 60
+ allow_token_by_default = true
+ custom_picker_binary = hyprland-preview-share-picker
+}