Skip to content

About

Share your Hyprland desktop with a Mac using its built-in Screen Sharing app, including High Performance mode.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

wayshare

Share your Hyprland desktop with a Mac, using the Screen Sharing app it already has. wayshare speaks Apple's Screen Sharing protocol, so there's nothing to install on the Mac.

  • The Mac's ⌘ key sends Super, so your Hyprland and Omarchy shortcuts work as usual.
  • Copy and paste text, rich text and images in both directions.
  • Screen Sharing's High Performance mode works, for sharp, low-latency video and sound.

An Omarchy desktop shared to a Mac with Screen Sharing

Needs Hyprland 0.56 or newer and systemd.

Demo

wayshare demo

Install

curl -fsSL https://raw.githubusercontent.com/wesleygrimes/wayshare/main/install.sh | sh

This puts wayshare in ~/.local/bin and sets up its systemd user service, without sudo. Builds are for x86_64 and ARM64.

Other ways to install:

  • With mise: mise use -g github:wesleygrimes/wayshare, then wayshare install-service
  • From source

wayshare isn't on the AUR or in omarchy pkg yet. Those packages are coming soon.

Set up

  1. Pick a password. Screen Sharing asks for this user name and password when you connect.

    wayshare set-password --user "$USER"
  2. Tell wayshare which monitor to share. hyprctl monitors lists them; replace DP-1 with yours.

    mkdir -p ~/.config/wayshare
    echo 'output = "DP-1"' > ~/.config/wayshare/config.toml
  3. Start it with your session:

    systemctl --user enable --now wayshare

    On Omarchy that's all. Elsewhere, if wayshare doesn't come back after you log in again, add one line to hyprland.conf.

  4. On the Mac, open the Screen Sharing app (search for it with Spotlight), choose Connection > New and enter the Linux machine's address, like 192.168.1.20. Sign in with the password from step 1. To get sharper, low-latency video and sound, pick High Performance when it asks (see High Performance mode).

    The machine also shows up in Finder's sidebar under Network.

Connection trouble? See Troubleshooting.

Upgrade

Run the install command again. It restarts the service for you.

With mise or a package, upgrade the usual way, then restart the service:

systemctl --user restart wayshare

Uninstall

systemctl --user disable --now wayshare
rm -f ~/.local/bin/wayshare ~/.local/share/systemd/user/wayshare.service

If you installed with mise or a package, remove it that way too. Your password and settings stay in your config directory (usually ~/.config/wayshare) until you delete it.

More

Contributors

Thanks to these people (emoji key):

Wes Grimes
Wes Grimes

💻 📖 🚧
Andre Alves
Andre Alves

🐛 🤔

This project follows the all-contributors specification. To contribute, see CONTRIBUTING.md.

Support

wayshare is free. If it's useful, you can sponsor the work or buy me a coffee.

License

Apache-2.0. See LICENSE.

About

Share your Hyprland desktop with a Mac using its built-in Screen Sharing app, including High Performance mode.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages