summaryrefslogtreecommitdiffstats
path: root/roles/hyprland
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/hyprland
parenta38bb05301efe2fb179a8dd622e16e8fd70250cb (diff)
Refactor hyprshare and abstract role dependencies
Diffstat (limited to 'roles/hyprland')
-rw-r--r--roles/hyprland/meta/main.yml1
-rw-r--r--roles/hyprland/tasks/main.yml15
-rw-r--r--roles/hyprland/templates/hypr/xdph.conf.j25
3 files changed, 1 insertions, 20 deletions
diff --git a/roles/hyprland/meta/main.yml b/roles/hyprland/meta/main.yml
index 0e580298..b1837c7d 100644
--- a/roles/hyprland/meta/main.yml
+++ b/roles/hyprland/meta/main.yml
@@ -17,6 +17,7 @@ dependencies:
- role: "waybar"
- role: "clipse"
- role: "tofi"
+ - role: "xdg-desktop-portal"
- role: "hyprcursor"
- role: "hyprtheme"
- role: "hyprshare"
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index c0135a4e..e5e16b00 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -10,8 +10,6 @@
- "hyprsunset"
- "hyprshot"
- "hyprland"
- - "xdg-desktop-portal-gnome"
- - "xdg-desktop-portal-hyprland"
state: "present"
- name: "Ensure hyprland AUR packages are installed"
@@ -76,8 +74,6 @@
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"
@@ -111,17 +107,6 @@
# 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
deleted file mode 100644
index 0e4b8119..00000000
--- a/roles/hyprland/templates/hypr/xdph.conf.j2
+++ /dev/null
@@ -1,5 +0,0 @@
-screencopy {
- max_fps = 60
- allow_token_by_default = true
- custom_picker_binary = hyprland-preview-share-picker
-}