2020-07-01 11:45:11 +00:00
|
|
|
---
|
2020-07-02 10:04:22 +00:00
|
|
|
- name: install required packages for dwm
|
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
|
2023-08-04 22:49:37 +00:00
|
|
|
- libyajl-dev
|
2020-07-01 11:45:11 +00:00
|
|
|
|
2020-07-02 10:04:22 +00:00
|
|
|
- name: checkout dwm
|
|
|
|
git:
|
|
|
|
repo: "{{ dwm.repo }}"
|
2023-08-08 21:09:36 +00:00
|
|
|
dest: "{{ desktop_src_dir }}/dwm"
|
2020-07-02 10:04:22 +00:00
|
|
|
clone: yes
|
|
|
|
update: yes
|
2020-07-01 11:45:11 +00:00
|
|
|
|
|
|
|
- name: build dwm
|
|
|
|
make:
|
2023-08-08 21:09:36 +00:00
|
|
|
chdir: "{{ desktop_src_dir }}/dwm"
|
2020-07-01 11:45:11 +00:00
|
|
|
|
|
|
|
- name: copy xsession
|
|
|
|
become: yes
|
|
|
|
copy:
|
|
|
|
src: usr/share/xsessions/dwm.desktop
|
|
|
|
dest: /usr/share/xsessions/dwm.desktop
|
|
|
|
|
2023-04-29 13:47:14 +00:00
|
|
|
- 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
|
|
|
|
|
2020-07-01 11:45:11 +00:00
|
|
|
- name: copy icon
|
|
|
|
become: yes
|
|
|
|
copy:
|
|
|
|
src: usr/share/icons/dwm.png
|
|
|
|
dest: /usr/share/icons/dwm.png
|
|
|
|
|
2021-07-06 22:15:22 +00:00
|
|
|
- name: copy run script
|
|
|
|
become: yes
|
|
|
|
copy:
|
|
|
|
src: usr/local/bin/start-dwm
|
|
|
|
dest: /usr/local/bin/start-dwm
|
|
|
|
mode: '0755'
|
|
|
|
|
2023-04-29 13:47:14 +00:00
|
|
|
- name: copy run script
|
|
|
|
become: yes
|
|
|
|
copy:
|
|
|
|
src: usr/local/bin/dwm-gnome
|
|
|
|
dest: /usr/local/bin/dwm-gnome
|
|
|
|
mode: '0755'
|
|
|
|
|
2020-07-01 11:45:11 +00:00
|
|
|
- name: install dwm
|
|
|
|
become: yes
|
2020-07-02 10:04:22 +00:00
|
|
|
register: make
|
2020-07-01 11:45:11 +00:00
|
|
|
make:
|
2023-08-08 21:09:36 +00:00
|
|
|
chdir: "{{ desktop_src_dir }}/dwm"
|
2020-07-01 11:45:11 +00:00
|
|
|
target: install
|
2020-07-02 10:04:22 +00:00
|
|
|
|
|
|
|
- name: debug
|
|
|
|
debug: msg="{{ make.stdout }}"
|
2023-04-24 01:21:51 +00:00
|
|
|
|
|
|
|
- name: install additional packages
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
pkg:
|
|
|
|
- gsimplecal
|