add the rest of the hypr tools
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
version: "{{ aquamarine.vers }}"
|
||||
|
||||
- name: Apply patch for alpine linux
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.posix.patch:
|
||||
basedir: "{{ aquamarine.git_path }}"
|
||||
src: aquamarine/Alpine.patch
|
||||
|
||||
72
tasks/src/hypridle.yml
Normal file
72
tasks/src/hypridle.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hypridle.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hypridle is installed
|
||||
register: stat_hypridle_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hypridle"
|
||||
|
||||
- name: Build and install hypridle
|
||||
when:
|
||||
- not stat_hypridle_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hypridle.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hypridle.repo }}"
|
||||
version: "{{ hypridle.vers }}"
|
||||
|
||||
- name: Apply cmakelists patch
|
||||
ansible.posix.patch:
|
||||
basedir: "{{ hypridle.git_path }}"
|
||||
src: hypridle/cmakelists.patch
|
||||
state: present
|
||||
|
||||
- name: Configure hypridle
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hypridle.git_path }}/build"
|
||||
chdir: "{{ hypridle.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hypridle
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hypridle.git_path }}/build/hypridle"
|
||||
chdir: "{{ hypridle.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hypridle
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hypridle"
|
||||
chdir: "{{ hypridle.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
67
tasks/src/hyprland_qt_support.yml
Normal file
67
tasks/src/hyprland_qt_support.yml
Normal file
@@ -0,0 +1,67 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprland_qt_support.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprland_qt_support is installed
|
||||
register: stat_hyprland_qt_support_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprland_qt_support"
|
||||
|
||||
- name: Build and install hyprland_qt_support
|
||||
when:
|
||||
- not stat_hyprland_qt_support_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprland_qt_support.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprland_qt_support.repo }}"
|
||||
version: "{{ hyprland_qt_support.vers }}"
|
||||
|
||||
- name: Configure hyprland_qt_support
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qt_support.git_path }}/build"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -DINSTALL_QML_PREFIX=/lib/qt6/qml
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprland_qt_support
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qt_support.git_path }}/build/hyprland_qt_support"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprland_qt_support
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprland_qt_support"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
66
tasks/src/hyprland_qtutils.yml
Normal file
66
tasks/src/hyprland_qtutils.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprland_qtutils.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprland_qtutils is installed
|
||||
register: stat_hyprland_qtutils_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprland_qtutils"
|
||||
|
||||
- name: Build and install hyprland_qtutils
|
||||
when:
|
||||
- not stat_hyprland_qtutils_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprland_qtutils.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprland_qtutils.repo }}"
|
||||
version: "{{ hyprland_qtutils.vers }}"
|
||||
|
||||
- name: Configure hyprland_qtutils
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qtutils.git_path }}/build"
|
||||
chdir: "{{ hyprland_qtutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprland_qtutils
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qtutils.git_path }}/build/hyprland_qtutils"
|
||||
chdir: "{{ hyprland_qtutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprland_qtutils
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprland_qtutils"
|
||||
chdir: "{{ hyprland_qtutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
72
tasks/src/hyprlock.yml
Normal file
72
tasks/src/hyprlock.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprlock.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprlock is installed
|
||||
register: stat_hyprlock_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprlock"
|
||||
|
||||
- name: Build and install hyprlock
|
||||
when:
|
||||
- not stat_hyprlock_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprlock.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprlock.repo }}"
|
||||
version: "{{ hyprlock.vers }}"
|
||||
|
||||
- name: Apply cmakelists patch
|
||||
ansible.posix.patch:
|
||||
basedir: "{{ hyprlock.git_path }}"
|
||||
src: hyprlock/cmakelists.patch
|
||||
state: present
|
||||
|
||||
- name: Configure hyprlock
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprlock.git_path }}/build"
|
||||
chdir: "{{ hyprlock.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprlock
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprlock.git_path }}/build/hyprlock"
|
||||
chdir: "{{ hyprlock.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprlock
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprlock"
|
||||
chdir: "{{ hyprlock.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
66
tasks/src/hyprpaper.yml
Normal file
66
tasks/src/hyprpaper.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprpaper.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprpaper is installed
|
||||
register: stat_hyprpaper_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprpaper"
|
||||
|
||||
- name: Build and install hyprpaper
|
||||
when:
|
||||
- not stat_hyprpaper_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprpaper.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprpaper.repo }}"
|
||||
version: "{{ hyprpaper.vers }}"
|
||||
|
||||
- name: Configure hyprpaper
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpaper.git_path }}/build"
|
||||
chdir: "{{ hyprpaper.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprpaper
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpaper.git_path }}/build/hyprpaper"
|
||||
chdir: "{{ hyprpaper.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprpaper
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprpaper"
|
||||
chdir: "{{ hyprpaper.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
66
tasks/src/hyprpicker.yml
Normal file
66
tasks/src/hyprpicker.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprpicker.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprpicker is installed
|
||||
register: stat_hyprpicker_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprpicker"
|
||||
|
||||
- name: Build and install hyprpicker
|
||||
when:
|
||||
- not stat_hyprpicker_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprpicker.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprpicker.repo }}"
|
||||
version: "{{ hyprpicker.vers }}"
|
||||
|
||||
- name: Configure hyprpicker
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpicker.git_path }}/build"
|
||||
chdir: "{{ hyprpicker.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprpicker
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpicker.git_path }}/build/hyprpicker"
|
||||
chdir: "{{ hyprpicker.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprpicker
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprpicker"
|
||||
chdir: "{{ hyprpicker.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
Reference in New Issue
Block a user