summaryrefslogtreecommitdiffstats
path: root/roles/hyprland/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-10 18:49:44 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-10 18:49:44 +0200
commit2760491ebf49ead138b877ae5de691292dca0f40 (patch)
tree5800e4d12f8efa3510c32ae35f410b6b689ac60c /roles/hyprland/tasks
parent448b78eaeb6ea80d44686f62419dd2b5892a6da9 (diff)
Replace hyprland monitors with kanshi profiles
Diffstat (limited to 'roles/hyprland/tasks')
-rw-r--r--roles/hyprland/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index 7a25e7c2..d14b556c 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -11,6 +11,7 @@
- "hyprshot"
- "satty"
- "hyprland"
+ - "kanshi"
state: "present"
- name: "Ensure hyprland AUR packages are installed"
@@ -50,7 +51,9 @@
- "/etc/hypr/scripts"
- "/etc/xdg/uwsm"
- "/etc/xdg/xdg-desktop-portal"
+ - "/etc/xdg/kanshi"
- "{{ ansible_facts['env']['HOME'] }}/.config/hypr"
+ - "{{ ansible_facts['env']['HOME'] }}/.config/kanshi"
- name: "Configure system defaults"
become: true
@@ -77,6 +80,8 @@
dest: "/etc/hypr/hypridle.conf"
- src: "hypr/hyprland.conf.j2"
dest: "/etc/hypr/hyprland.conf"
+ - src: "hypr/kanshi.conf.j2"
+ dest: "/etc/xdg/kanshi/config"
- src: "uwsm/env.j2"
dest: "/etc/xdg/uwsm/env"
- src: "uwsm/env-hyprland.j2"
@@ -108,6 +113,17 @@
# System defaults
source = /etc/hypr/hypridle.conf
+ - name: "Configure user kanshi configuration"
+ ansible.builtin.blockinfile:
+ path: "{{ ansible_facts['env']['HOME'] }}/.config/kanshi/config"
+ state: "present"
+ prepend_newline: true
+ append_newline: true
+ marker: "# ==== {mark} ANSIBLE KANSHI CONFIG"
+ block: |
+ # System defaults
+ include /etc/xdg/kanshi/config
+
- name: "Copy hyprland scripts"
become: true
ansible.builtin.copy: