mirror of
https://github.com/roles-ansible/ansible_role_sway.git
synced 2024-08-16 13:49:49 +02:00
Merge pull request #3 from roles-ansible/pipewire
Improve screenshare stuff
This commit is contained in:
commit
baa0498c70
4 changed files with 23 additions and 4 deletions
|
@ -38,6 +38,7 @@ With this ansible role you deploy a sway configuration with optionally swaylock,
|
||||||
| ``sway__wlsunset_params`` | ``-l 49 -L 8.4`` |
|
| ``sway__wlsunset_params`` | ``-l 49 -L 8.4`` |
|
||||||
| ``sway__keybindings`` | *(see [defaults/main.yml](defaults/main.yml)* | List of sway keybindings |
|
| ``sway__keybindings`` | *(see [defaults/main.yml](defaults/main.yml)* | List of sway keybindings |
|
||||||
| ``sway__keybindings_extra`` | ``[]`` | Empty list for additional keybindings |
|
| ``sway__keybindings_extra`` | ``[]`` | Empty list for additional keybindings |
|
||||||
|
| ``sway__pipewire`` | ``[]`` | Install some requirements for desktop sharing... |
|
||||||
| ``submodules_versioncheck`` | ``false`` | Basic Versionscheck to prevent running older version of this role |
|
| ``submodules_versioncheck`` | ``false`` | Basic Versionscheck to prevent running older version of this role |
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,7 @@ sway__keybindings:
|
||||||
name: display settings
|
name: display settings
|
||||||
key: $mod+Shift+F7
|
key: $mod+Shift+F7
|
||||||
exec: wdisplays
|
exec: wdisplays
|
||||||
|
sway__pipewire: true
|
||||||
|
|
||||||
sway__keybindings_extra: []
|
sway__keybindings_extra: []
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
file: "versioncheck.yml"
|
file: "versioncheck.yml"
|
||||||
when: submodules_versioncheck | bool
|
when: submodules_versioncheck | bool
|
||||||
|
|
||||||
# - name: Register variables
|
|
||||||
# ansible.builtin.import_tasks:
|
|
||||||
# file: variables.yml
|
|
||||||
|
|
||||||
- name: Ensure i3 packages are installed [Debian]
|
- name: Ensure i3 packages are installed [Debian]
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: "setup-Debian.yml"
|
file: "setup-Debian.yml"
|
||||||
|
@ -30,3 +26,12 @@
|
||||||
loop_var: swayusr
|
loop_var: swayusr
|
||||||
label: "{{ swayusr.home }}/.config/waybar/"
|
label: "{{ swayusr.home }}/.config/waybar/"
|
||||||
when: sway__waybar | bool
|
when: sway__waybar | bool
|
||||||
|
|
||||||
|
- name: Install requirements for desktop sharing like pipewire
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: "pipewire.yml"
|
||||||
|
loop: "{{ sway__user_list | flatten(1) }}"
|
||||||
|
loop_control:
|
||||||
|
loop_var: swayusr
|
||||||
|
label: "{{ swayusr.home }}/.config/waybar/"
|
||||||
|
when: sway__pipewire | bool
|
||||||
|
|
12
tasks/pipewire.yml
Normal file
12
tasks/pipewire.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
# See https://elis.nu/blog/2021/02/detailed-setup-of-screen-sharing-in-sway/
|
||||||
|
- name: Ensure waybar is installed.
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: "present"
|
||||||
|
become: true
|
||||||
|
with_items:
|
||||||
|
- 'xdg-desktop-portal-wlr'
|
||||||
|
- 'xdg-desktop-portal-gtk'
|
||||||
|
- 'slurp'
|
||||||
|
- 'pipewire'
|
Loading…
Reference in a new issue