summaryrefslogtreecommitdiffstats
path: root/roles/hyprland/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-12 18:47:09 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-12 21:05:58 +0100
commit923ff1e6021e2746829fe0bc459f32179155f95f (patch)
tree2361cf2e7c5553746dbee7760cb44d915050a446 /roles/hyprland/tasks
parent0dc03632c7eb24227cdecbe460ab8d42669430a7 (diff)
Add initial (basic) hyprland role configurations
Diffstat (limited to 'roles/hyprland/tasks')
-rw-r--r--roles/hyprland/tasks/main.yml60
1 files changed, 60 insertions, 0 deletions
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
new file mode 100644
index 00000000..c7bb98b2
--- /dev/null
+++ b/roles/hyprland/tasks/main.yml
@@ -0,0 +1,60 @@
+---
+- name: "Ensure hyprland packages are installed"
+ become: true
+ ansible.builtin.package:
+ name: "{{ item }}"
+ state: "present"
+ loop:
+ - "hyprland"
+
+- name: "Deploy custom hyprland desktop entry"
+ become: true
+ ansible.builtin.template:
+ src: "hyprland-custom.desktop.j2"
+ dest: "/usr/share/wayland-sessions/hyprland-custom.desktop"
+ mode: "0644"
+ owner: "root"
+ group: "root"
+
+- name: "Configure greetd"
+ become: true
+ ansible.builtin.copy:
+ dest: "/etc/greetd/config.toml"
+ owner: "greeter"
+ group: "greeter"
+ mode: "0644"
+ content: |
+ [terminal]
+ vt = 1
+ [default_session]
+ command = "cage -s -- gtkgreet -c 'uwsm start hyprland-custom.desktop'"
+ user = "greeter"
+ notify:
+ - "Restart greetd"
+
+- name: "Create hyprland config directory"
+ become: true
+ ansible.builtin.file:
+ path: "/etc/hypr"
+ state: "directory"
+ mode: "0755"
+
+- name: "Configure hyprland defaults"
+ become: true
+ ansible.builtin.template:
+ src: "{{ item.src }}"
+ dest: "{{ item.dest }}"
+ mode: "0644"
+ loop:
+ - src: "hyprland/hyprland.conf.j2"
+ dest: "/etc/hypr/hyprland.conf"
+ - src: "hyprland/monitors.conf.j2"
+ dest: "/etc/hypr/monitors.conf"
+ - src: "hyprland/input.conf.j2"
+ dest: "/etc/hypr/input.conf"
+ - src: "hyprland/bindings.conf.j2"
+ dest: "/etc/hypr/bindings.conf"
+ - src: "hyprland/envs.conf.j2"
+ dest: "/etc/hypr/envs.conf"
+ - src: "hyprland/looknfeel.conf.j2"
+ dest: "/etc/hypr/looknfeel.conf"