more hyprland fixes

This commit is contained in:
Matthew Stobbs
2025-03-02 09:44:40 -07:00
parent 1492dd0db4
commit 18fca577e7
14 changed files with 242 additions and 17 deletions

58
tasks/src/hyprcursor.yml Normal file
View File

@@ -0,0 +1,58 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: "{{ hyprcursor.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprcursor
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ hyprcursor.git_path }}"
repo: "{{ hyprcursor.repo }}"
version: "{{ hyprcursor.vers }}"
- name: Configure hyprcursor
ansible.builtin.command:
creates: "{{ hyprcursor.git_path }}/build"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build hyprcursor
ansible.builtin.command:
creates: "{{ hyprcursor.git_path }}/build/hyprcursor.so"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprcursor
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprcursor"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --install
- ./build