Search

Search IconIcon to open search

Screen Sharing on Wayland (Hyprland) with Chromium Browsers (Brave, Chrome, Chromium, etc.)

Last updatedUpdated: by Simon Späti · CreatedCreated:

This is the solution to avoid double prompt when screen sharing on Linux with Wayland. This works for Google Meet, Zoom, Teams and other that run in the browser.

# What happens: The Problem

  1. When I screen share on Arch Linux with Omarchy I always get the system prompt twice:

  2. and then after I choose this i get this windows:

  3. When I click “share”, the dialog at number 2. will appeach again.

I learned that it does not matter, what I choose in 2. it does not matter. Only what I choose in the second time.

Also, windows (applications) such as Obsidian work as well. BUT remember to choose in the second pick!! (3.)

# Work arounds

I found, that when I choose Allow a restore token - it will remember my first choice and I only need to choose once. But again, then I need to always remember to click the allow a restore token:

# Permanent Solution

Make it permanent:

Create file or add in ~/.config/hypr/xdph.conf :

1
2
3
screencopy {
allow_token_by_default = true
}  

and reboot. This will automatically tick the checkbox next time and allow you to only choose once:

Check also the  Hyprland Wiki. This solutions was found on Reddit.

# Rename Screen names

Next fix to solve would be to rename the default names - whenever I have an external monitor set, I don’t immediately know which screen is which. Would be nice if we could rename screen 0 and 1 to internal monitor and external or similar, no? Anyone know how?

# Nice Solution for Omarchy with Walker

This solutions uses Walker (the launcher in Omarchy) to choose and also show more friendlier names.

See the PR here: Add custom walker-based share picker with monitor descriptions by hoblin · Pull Request #2289 · basecamp/omarchy · GitHub


Origin: My Tuxedo InfinityBook 14 AMD
References: Arch Linux