Skip to content

Commit

Permalink
Merge pull request #4 from roles-ansible/pipewire
Browse files Browse the repository at this point in the history
Improve wayland screenshare support with pipewire
  • Loading branch information
DO1JLR authored Aug 6, 2024
2 parents baa0498 + d73b05a commit 0b2f336
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions tasks/pipewire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,16 @@
with_items:
- 'xdg-desktop-portal-wlr'
- 'xdg-desktop-portal-gtk'
- 'xdg-desktop-portal'
- 'slurp'
- '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 changes: 9 additions & 0 deletions templates/50-systemd-user.conf.j2
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 0b2f336

Please sign in to comment.