2020-07-01 11:45:11 +00:00
|
|
|
---
|
|
|
|
- name: install required packages
|
2020-07-01 13:49:46 +00:00
|
|
|
become: yes
|
2020-07-01 11:45:11 +00:00
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
pkg:
|
|
|
|
- git
|
|
|
|
- make
|
2020-07-01 14:45:35 +00:00
|
|
|
- build-essential
|
|
|
|
- gcc
|
2020-07-01 11:45:11 +00:00
|
|
|
- libx11-dev
|
|
|
|
- libxft-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libxcb-res0-dev
|
|
|
|
- libx11-xcb-dev
|
|
|
|
|
|
|
|
- name: checkout
|
|
|
|
shell:
|
|
|
|
cmd: |
|
|
|
|
mkdir -p ~/src
|
|
|
|
cd ~/src
|
2020-07-01 14:42:35 +00:00
|
|
|
git clone {{ dwm.repo }}
|
2020-07-01 11:45:11 +00:00
|
|
|
|
|
|
|
- name: build dwm
|
|
|
|
make:
|
|
|
|
chdir: ~/src/dwm
|
|
|
|
|
|
|
|
- name: copy xsession
|
|
|
|
become: yes
|
|
|
|
copy:
|
|
|
|
src: usr/share/xsessions/dwm.desktop
|
|
|
|
dest: /usr/share/xsessions/dwm.desktop
|
|
|
|
|
|
|
|
- name: copy icon
|
|
|
|
become: yes
|
|
|
|
copy:
|
|
|
|
src: usr/share/icons/dwm.png
|
|
|
|
dest: /usr/share/icons/dwm.png
|
|
|
|
|
|
|
|
- name: install dwm
|
|
|
|
become: yes
|
|
|
|
make:
|
|
|
|
chdir: ~/src/dwm
|
|
|
|
target: install
|