Update polybar role

This commit is contained in:
Przemek Grondek 2023-08-06 11:00:43 +02:00
parent be5bc0affc
commit 10b33df889
2 changed files with 12 additions and 10 deletions

View File

@ -1,5 +1,5 @@
--- ---
- name: install required packages for polybar - name: "polybar: install required packages"
become: yes become: yes
apt: apt:
update_cache: yes update_cache: yes
@ -19,41 +19,43 @@
- libxcb-util-dev - libxcb-util-dev
- libxcb-image0-dev - libxcb-image0-dev
- python3-xcbgen - python3-xcbgen
- python3-sphinx
- libjsoncpp-dev - libjsoncpp-dev
- name: create src dir - name: "polybar: create src dir"
file: file:
path: "{{ ansible_user_dir }}/src" path: "{{ ansible_user_dir }}/src"
- name: checkout polybar - name: "polybar: checkout"
git: git:
repo: "{{ polybar.repo }}" repo: "{{ polybar.repo }}"
dest: "{{ ansible_user_dir }}/src/polybar" dest: "{{ ansible_user_dir }}/src/polybar"
version: "{{ looking_glass.branch }}"
clone: yes clone: yes
update: yes update: yes
- name: create directory for build - name: "polybar: create directory for build"
file: file:
state: directory state: directory
path: "{{ ansible_user_dir }}/src/polybar/build" path: "{{ ansible_user_dir }}/src/polybar/build"
- name: run cmake - name: "polybar: run cmake"
shell: shell:
cmd: "cmake ../" cmd: "cmake ../"
chdir: "{{ ansible_user_dir }}/src/polybar/build" chdir: "{{ ansible_user_dir }}/src/polybar/build"
- name: build - name: "polybar: build"
make: make:
chdir: "{{ ansible_user_dir }}/src/polybar/build" chdir: "{{ ansible_user_dir }}/src/polybar/build"
params:
NUM_THREADS: "{{ ansible_processor_vcpus }}"
- name: install - name: "polybar: install"
become: yes become: yes
make: make:
chdir: "{{ ansible_user_dir }}/src/polybar/build" chdir: "{{ ansible_user_dir }}/src/polybar/build"
target: install target: install
- name: copy run script - name: "polybar: copy run script"
become: yes become: yes
copy: copy:
src: usr/local/bin/launch-polybar src: usr/local/bin/launch-polybar

View File

@ -6,4 +6,4 @@ st:
dwmstatus: dwmstatus:
repo: https://git.grondek.pl/pgrondek/dwmstatus.git repo: https://git.grondek.pl/pgrondek/dwmstatus.git
polybar: polybar:
repo: https://github.com/mihirlad55/polybar-dwm-module.git repo: https://github.com/pgrondek/polybar-dwm.git