From 5731cdd191b686f712f6ddd36efd73a7bb825832 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 15 Dec 2022 12:35:38 +0100 Subject: [PATCH] configure zoom for screen sharing --- roles/sway/files/config | 2 + roles/sway/files/zoomus.conf | 46 +++++++++++++++++++++ roles/sway/tasks/main.yml | 16 +++++++ roles/sway/templates/by_host/work/config.j2 | 18 ++++---- 4 files changed, 73 insertions(+), 9 deletions(-) create mode 100644 roles/sway/files/config create mode 100644 roles/sway/files/zoomus.conf diff --git a/roles/sway/files/config b/roles/sway/files/config new file mode 100644 index 0000000..441ee09 --- /dev/null +++ b/roles/sway/files/config @@ -0,0 +1,2 @@ +chooser_type = simple +chooser_cmd = slurp -f %o -ro diff --git a/roles/sway/files/zoomus.conf b/roles/sway/files/zoomus.conf new file mode 100644 index 0000000..5f243e6 --- /dev/null +++ b/roles/sway/files/zoomus.conf @@ -0,0 +1,46 @@ +[General] +GeoLocale=system +SensitiveInfoMaskOn=true +autoPlayGif=false +autoScale=true +bForceMaximizeWM=false +captureHDCamera=true +chatListPanelLastWidth=230 +conf.webserver=https://us02web.zoom.us +conf.webserver.vendor.default=https://zoom.us +currentMeetingId=93975858545 +deviceID=38:14:28:51:92:93 +enable.host.auto.grab=true +enableAlphaBuffer=true +enableCloudSwitch=true +enableLog=true +enableMiniWindow=true +enableQmlCache=true +enableScreenSaveGuard=false +enableStartMeetingWithRoomSystem=false +enableTestMode=false +enableWaylandShare=true +enablegpucomputeutilization=false +fake.version= +flashChatTime=0 +forceEnableTrayIcon=true +forceSSOURL= +host.auto.grab.interval=10 +isTransCoding=false +logLevel=info +newMeetingWithVideo=true +noSandbox=false +playSoundForNewMessage=false +scaleFactor=1 +shareBarTopMargin=0 +speaker_volume=255 +sso_domain=.zoom.us +sso_gov_domain=.zoomgov.com +system.audio.type=default +timeFormat12HoursEnable=true +upcoming_meeting_header_image= +useSystemTheme=true +userEmailAddress= + +[AS] +showframewindow=true diff --git a/roles/sway/tasks/main.yml b/roles/sway/tasks/main.yml index f3025e5..1fc8d20 100644 --- a/roles/sway/tasks/main.yml +++ b/roles/sway/tasks/main.yml @@ -41,3 +41,19 @@ copy: src: swaylock.fish dest: ~/.config/fish/functions + +- name: create xdg-desktop-wlr config dir + file: + path: ~/.config/xdg-desktop-portal-wlr/ + state: directory + +- name: configure xdg-desktop-wlr to select display + copy: + src: config + dest: ~/.config/xdg-desktop-portal-wlr/config + +- name: configure zoom for wayland sharing + copy: + src: zoomus.conf + dest: /home/user/.var/app/us.zoom.Zoom/config/zoomus.conf + diff --git a/roles/sway/templates/by_host/work/config.j2 b/roles/sway/templates/by_host/work/config.j2 index 15354ad..37a2b90 100644 --- a/roles/sway/templates/by_host/work/config.j2 +++ b/roles/sway/templates/by_host/work/config.j2 @@ -1,11 +1,11 @@ #INCLUDE#################################################### # output configuration -set $left "HDMI-A-2" -set $center "HDMI-A-1" -set $right "HDMI-A-3" -output $left pos 0 0 res 1920x1200 -output $center pos 1920 0 res 1920x1080 -output $right pos 3840 0 res 1920x1200 +set $left "eDP-1" +set $center "DP-3" +set $right "DP-4" +output $left pos 0 920 res 1920x1200 scale 1.5 +output $center pos 1280 0 res 1920x1080 +output $right pos 3200 0 res 1920x1200 # dpms output * dpms on @@ -15,7 +15,7 @@ bindswitch --reload lid:on output $laptop disable bindswitch --reload lid:off output $laptop enable # assign workspace to screens -workspace $tag1 output $left +workspace $tag1 output $center workspace $tag2 output $center workspace $tag3 output $right workspace $tag4 output $right @@ -23,8 +23,8 @@ workspace $tag5 output $right workspace $tag6 output $right workspace $tag7 output $center workspace $tag8 output $center -workspace $tag9 output $center -workspace $tag10 output $right +workspace $tag9 output $left +workspace $tag10 output $left # syncthing exec_always bash -c "pgrep -x syncthing || syncthing"