82 lines
1.5 KiB
YAML
82 lines
1.5 KiB
YAML
---
|
|
- name: install required packages for dwm
|
|
become: yes
|
|
apt:
|
|
update_cache: yes
|
|
pkg:
|
|
- git
|
|
- make
|
|
- build-essential
|
|
- gcc
|
|
- libx11-dev
|
|
- libxft-dev
|
|
- libxinerama-dev
|
|
- libxcb-res0-dev
|
|
- libx11-xcb-dev
|
|
- libyajl-dev
|
|
|
|
- name: checkout dwm
|
|
git:
|
|
repo: "{{ dwm.repo }}"
|
|
dest: "{{ desktop_src_dir }}/dwm"
|
|
clone: yes
|
|
update: yes
|
|
|
|
- name: build dwm
|
|
make:
|
|
chdir: "{{ desktop_src_dir }}/dwm"
|
|
|
|
- name: copy xsession
|
|
become: yes
|
|
copy:
|
|
src: usr/share/xsessions/dwm.desktop
|
|
dest: /usr/share/xsessions/dwm.desktop
|
|
|
|
- name: copy xsession for gnome
|
|
become: yes
|
|
copy:
|
|
src: usr/share/xsessions/dwm-gnome.desktop
|
|
dest: /usr/share/xsessions/dwm-gnome.desktop
|
|
|
|
- name: copy gnome session
|
|
become: yes
|
|
copy:
|
|
src: usr/share/gnome-session/sessions/dwm-gnome.session
|
|
dest: /usr/share/gnome-session/sessions/dwm-gnome.session
|
|
|
|
- name: copy icon
|
|
become: yes
|
|
copy:
|
|
src: usr/share/icons/dwm.png
|
|
dest: /usr/share/icons/dwm.png
|
|
|
|
- name: copy run script
|
|
become: yes
|
|
copy:
|
|
src: usr/local/bin/start-dwm
|
|
dest: /usr/local/bin/start-dwm
|
|
mode: '0755'
|
|
|
|
- name: copy run script
|
|
become: yes
|
|
copy:
|
|
src: usr/local/bin/dwm-gnome
|
|
dest: /usr/local/bin/dwm-gnome
|
|
mode: '0755'
|
|
|
|
- name: install dwm
|
|
become: yes
|
|
register: make
|
|
make:
|
|
chdir: "{{ desktop_src_dir }}/dwm"
|
|
target: install
|
|
|
|
- name: debug
|
|
debug: msg="{{ make.stdout }}"
|
|
|
|
- name: install additional packages
|
|
become: yes
|
|
apt:
|
|
pkg:
|
|
- gsimplecal
|