I’ve got one of those crazy-wide screens that I usually use at 5120x1440 and it’s great. However, since I work remote, I often want to share my screen with someone on a typical 16:9 screen and the options of “tab”, “window” or “entire screen” aren’t particularly useful because I need to switch between windows a lot as part of the sharing session: terminal, IDE, browser, back to the terminal, etc.

I’d like to be able share either (a) a portion of the screen (half?) or (b) change my resolution temporarily to something like 2650x1440 and just share the whole screen.

The problem is that as far as I can tell, (a) isn’t an option, and while I can (b) change my resolution to something 16:9, it renders wide across the screen turning effectively every pixel is a wide rectangle. It’s… hard to look at.

I’m using Arch with GNOME+Wayland. Is there some way for me to do either of the above?

EDIT: I found a nifty little Python script that does exactly what I was hoping for in (b) above. Apparently this is a built-in feature for Wayland, but most browsers don’t implement it (yet?)

  • tasankovasara@sopuli.xyz
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    I have funky screen configurations too. What I’ve done is setup a headless screen that I view over VNC on a tablet and share that. On Wayland wayvnc can do this.

      • tasankovasara@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        18 hours ago

        On Sway:

        This goes in Sway’s config…

        output HEADLESS-1 {
        	pos 5120,0
        	mode 1920x1080@20Hz
        	bg ~/tausta_kuva fill
        }
        

        And this alias starts wayvnc.

        alias RuutuVNC='swaymsg create_output && nohup wayvnc 0.0.0.0 5900 >/dev/null &'

        After that, connect the VNC client on the tablet to port 5900 on the machine and sail the mouse cursor over to it when selecting the screen to share.

        There must have been a config for wayvnc somewhere, but I can’t find it. I don’t need to use this anymore after switching from a dual portrait setup to a dual LG DualUp setup, so that my screens are now pretty much square and the right way around. On the dual portrait setup, my screenshare would show up sideways in landscape :D