summaryrefslogtreecommitdiffstats
path: root/roles/hyprland/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-23 20:53:22 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-23 20:53:22 +0100
commit504d28be8865b1fd00d87271bd84c546696ba5c5 (patch)
tree7357433e72ed9ecbd44c56e662ae191273072abc /roles/hyprland/tasks
parent554c308f52abc1057efa3c77416ba0ef79b7d3c4 (diff)
Refactor hyprland configuration to follow recommendations
Co-Authored-By: Claude.ai
Diffstat (limited to 'roles/hyprland/tasks')
-rw-r--r--roles/hyprland/tasks/main.yml26
1 files changed, 8 insertions, 18 deletions
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index 6bd6eb82..c8096d13 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -50,6 +50,8 @@
loop:
- "/etc/hypr"
- "/etc/hypr/scripts"
+ - "/etc/xdg/uwsm"
+ - "/etc/xdg/xdg-desktop-portal"
- "{{ ansible_facts['env']['HOME'] }}/.config/hypr"
- name: "Configure system defaults"
@@ -67,8 +69,6 @@
dest: "/etc/hypr/input.conf"
- src: "bindings.conf.j2"
dest: "/etc/hypr/bindings.conf"
- - src: "envs.conf.j2"
- dest: "/etc/hypr/envs.conf"
- src: "looknfeel.conf.j2"
dest: "/etc/hypr/looknfeel.conf"
- src: "rules.conf.j2"
@@ -79,6 +79,12 @@
dest: "/etc/hypr/hypridle.conf"
- src: "hyprland.conf.j2"
dest: "/etc/hypr/hyprland.conf"
+ - src: "uwsm-env.j2"
+ dest: "/etc/xdg/uwsm/env"
+ - src: "uwsm-env-hyprland.j2"
+ dest: "/etc/xdg/uwsm/env-hyprland"
+ - src: "portals.conf.j2"
+ dest: "/etc/xdg/xdg-desktop-portal/portals.conf"
- name: "Configure user defaults"
block:
@@ -104,22 +110,6 @@
# 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: