Update polybar role
This commit is contained in:
parent
be5bc0affc
commit
10b33df889
@ -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
|
||||
|
@ -6,4 +6,4 @@ st:
|
||||
dwmstatus:
|
||||
repo: https://git.grondek.pl/pgrondek/dwmstatus.git
|
||||
polybar:
|
||||
repo: https://github.com/mihirlad55/polybar-dwm-module.git
|
||||
repo: https://github.com/pgrondek/polybar-dwm.git
|
Loading…
Reference in New Issue
Block a user