mirror of
https://github.com/roles-ansible/ansible_role_sway.git
synced 2024-08-16 13:49:49 +02:00
Improve wayland screenshare support with pipewire
This commit is contained in:
parent
baa0498c70
commit
d73b05a364
3 changed files with 21 additions and 1 deletions
|
@ -8,5 +8,16 @@
|
||||||
with_items:
|
with_items:
|
||||||
- 'xdg-desktop-portal-wlr'
|
- 'xdg-desktop-portal-wlr'
|
||||||
- 'xdg-desktop-portal-gtk'
|
- 'xdg-desktop-portal-gtk'
|
||||||
|
- 'xdg-desktop-portal'
|
||||||
- 'slurp'
|
- 'slurp'
|
||||||
- 'pipewire'
|
- 'pipewire'
|
||||||
|
|
||||||
|
- name: Deploy waybar weather script
|
||||||
|
become: true
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: 'templates/50-systemd-user.conf.j2'
|
||||||
|
dest: '/etc/sway/config.d/50-systemd-user.conf'
|
||||||
|
mode: '0644'
|
||||||
|
owner: 'root'
|
||||||
|
group: 'root'
|
||||||
|
backup: true
|
||||||
|
|
9
templates/50-systemd-user.conf.j2
Normal file
9
templates/50-systemd-user.conf.j2
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{{ ansible_managed | comment }}
|
||||||
|
# import variables into system-user enviroment
|
||||||
|
# based on the instructions in the sway wiki
|
||||||
|
# see also https://github.com/swaywm/sway/issues/5732
|
||||||
|
# and https://github.com/systemd/systemd/blob/dfc637d0ff756889e8e5b7cb4ec991eb06069aa1/xorg/50-systemd-user.sh
|
||||||
|
|
||||||
|
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
|
||||||
|
exec hash dbus-update-activation-environment 2>/dev/null && \
|
||||||
|
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_CURRENT_DESKTOP=sway
|
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
playbook_version_number: 11 # should be int
|
playbook_version_number: 12 # should be int
|
||||||
playbook_version_path: 'role-roles-ansible.sway.version'
|
playbook_version_path: 'role-roles-ansible.sway.version'
|
||||||
|
|
Loading…
Reference in a new issue