summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/hyprland/tasks/main.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index bd0d9f80..6bd6eb82 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -12,7 +12,7 @@
- "hyprsunset"
- "hyprshot"
- "hyprland"
- - "xdg-desktop-portal-gtk"
+ - "xdg-desktop-portal-gnome"
- "xdg-desktop-portal-hyprland"
- name: "Ensure hyprland AUR packages are installed"
@@ -104,6 +104,22 @@
# System defaults
source = /etc/hypr/hypridle.conf
+- name: "Configure xdg-desktop-portal for Hyprland"
+ block:
+ - name: "Create xdg-desktop-portal config directory"
+ ansible.builtin.file:
+ path: "{{ ansible_facts['env']['HOME'] }}/.config/xdg-desktop-portal"
+ state: "directory"
+ mode: "0755"
+
+ - name: "Configure portal backends"
+ ansible.builtin.copy:
+ dest: "{{ ansible_facts['env']['HOME'] }}/.config/xdg-desktop-portal/portals.conf"
+ mode: "0644"
+ content: |
+ [preferred]
+ default=hyprland;gnome
+
- name: "Copy hyprland scripts"
become: true
ansible.builtin.copy: