diff --git a/roles/desktop-environment/tasks/hyprland.yml b/roles/desktop-environment/tasks/hyprland.yml index 15e6145..9f81351 100644 --- a/roles/desktop-environment/tasks/hyprland.yml +++ b/roles/desktop-environment/tasks/hyprland.yml @@ -61,6 +61,12 @@ - libspa-0.2-dev - libpipewire-0.3-dev - libsdbus-c++-dev + # hyprland-qt-support + - qt6-declarative-dev + # hyprland-qtutils + - qt6-base-private-dev + - qt6-wayland-dev + - qt6-wayland-private-dev - name: Create source folders become: yes @@ -78,6 +84,8 @@ - "xdg-desktop-portal-hyprland" - "Aquamarine" - "hyprgraphics" + - "hyprland-qt-support" + - "hyprland-qtutils" - name: Checkout required source repositories ansible.builtin.git: @@ -111,6 +119,12 @@ - repo: "https://github.com/hyprwm/Hyprland.git" version: "v0.47.2" dest: "/usr/local/src/Hyprland" + - repo: "https://github.com/hyprwm/hyprland-qt-support.git" + version: "v0.1.0" + dest: "/usr/local/src/hyprland-qt-support" + - repo: "https://github.com/hyprwm/hyprland-qtutils.git" + version: "v0.1.3" + dest: "/usr/local/src/hyprland-qtutils" - name: Build hyprutils ansible.builtin.command: @@ -222,6 +236,34 @@ cmd: "cmake --install build" chdir: /usr/local/src/xdg-desktop-portal-hyprland +- name: Build hyprland-qt-support + ansible.builtin.command: + cmd: "{{ item }}" + chdir: /usr/local/src/hyprland-qt-support + loop: + - "cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINSTALL_QML_PREFIX=lib/x86_64-linux-gnu/qt6/qml -S . -B ./build" + - "cmake --build ./build --config Release --target all --parallel 4" + +- name: Install hyprland-qt-support + become: yes + ansible.builtin.command: + cmd: "cmake --install build" + chdir: /usr/local/src/hyprland-qt-support + +- name: Build hyprland-qtutils + ansible.builtin.command: + cmd: "{{ item }}" + chdir: /usr/local/src/hyprland-qtutils + loop: + - "cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build" + - "cmake --build ./build --config Release --target all --parallel 4" + +- name: Install hyprland-qtutils + become: yes + ansible.builtin.command: + cmd: "cmake --install build" + chdir: /usr/local/src/hyprland-qtutils + - name: Reload systemd ansible.builtin.systemd_service: daemon_reload: true