parent
129b4d1571
commit
180bf3dd92
@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
- name: Set up uwsm
|
||||||
|
vars:
|
||||||
|
uid: "{{ lookup('env','USER') }}"
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
become: false
|
||||||
|
tasks:
|
||||||
|
- name: Get source code
|
||||||
|
ansible.builtin.command:
|
||||||
|
chdir: /home/{{ uid }}/sources
|
||||||
|
cmd: git clone https://github.com/Vladimir-csp/uwsm.git
|
||||||
|
creates: /home/{{ uid }}/sources/uwsm
|
||||||
|
- name: Build uwsm from source code
|
||||||
|
ansible.builtin.command:
|
||||||
|
chdir: /home/{{ uid }}/sources/uwsm
|
||||||
|
cmd: meson setup --wipe --prefix=/usr/local build -Duuctl=enabled -Duwsm-app=enabled
|
||||||
|
creates: /home/{{ uid }}/sources/uwsm/build
|
||||||
|
- name: Install uwsm
|
||||||
|
ansible.builtin.command:
|
||||||
|
chdir: /home/{{ uid }}/sources/uwsm
|
||||||
|
cmd: meson install -C build
|
||||||
|
creates: /usr/local/bin/uwsm
|
||||||
|
become: true
|
||||||
|
- name: Install uwsm config
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: ../templates/sway_desktop.j2
|
||||||
|
dest: /usr/share/wayland-sessions/swa.desktop
|
||||||
|
owner: 'root'
|
||||||
|
group: 'root'
|
||||||
|
mode: '0640'
|
||||||
|
become: true
|
@ -0,0 +1,6 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Sway (with UWSM)
|
||||||
|
Comment=Sway
|
||||||
|
Exec=uwsm start -N "Sway" -D sway -C "Sway" sway
|
||||||
|
DesktopNames=sway
|
||||||
|
Type=Application
|
Loading…
Reference in new issue