diff --git a/roles/dwm/tasks/polybar.yml b/roles/dwm/tasks/polybar.yml index 9c0c8bf..846c5b2 100644 --- a/roles/dwm/tasks/polybar.yml +++ b/roles/dwm/tasks/polybar.yml @@ -1,5 +1,5 @@ --- -- name: install required packages for polybar +- name: "polybar: install required packages" become: yes apt: update_cache: yes @@ -19,41 +19,43 @@ - libxcb-util-dev - libxcb-image0-dev - python3-xcbgen + - python3-sphinx - libjsoncpp-dev -- name: create src dir +- name: "polybar: create src dir" file: path: "{{ ansible_user_dir }}/src" -- name: checkout polybar +- name: "polybar: checkout" git: repo: "{{ polybar.repo }}" dest: "{{ ansible_user_dir }}/src/polybar" - version: "{{ looking_glass.branch }}" clone: yes update: yes -- name: create directory for build +- name: "polybar: create directory for build" file: state: directory path: "{{ ansible_user_dir }}/src/polybar/build" -- name: run cmake +- name: "polybar: run cmake" shell: cmd: "cmake ../" chdir: "{{ ansible_user_dir }}/src/polybar/build" -- name: build +- name: "polybar: build" make: chdir: "{{ ansible_user_dir }}/src/polybar/build" + params: + NUM_THREADS: "{{ ansible_processor_vcpus }}" -- name: install +- name: "polybar: install" become: yes make: chdir: "{{ ansible_user_dir }}/src/polybar/build" target: install -- name: copy run script +- name: "polybar: copy run script" become: yes copy: src: usr/local/bin/launch-polybar diff --git a/roles/dwm/vars/main.yml b/roles/dwm/vars/main.yml index 0b290c7..2a4eb55 100644 --- a/roles/dwm/vars/main.yml +++ b/roles/dwm/vars/main.yml @@ -6,4 +6,4 @@ st: dwmstatus: repo: https://git.grondek.pl/pgrondek/dwmstatus.git polybar: - repo: https://github.com/mihirlad55/polybar-dwm-module.git \ No newline at end of file + repo: https://github.com/pgrondek/polybar-dwm.git \ No newline at end of file