Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sync the clipboard

Tetheron shares copied text between the desktop and the phone. It syncs text only.

Before you begin: the phone is paired and connected.

DirectionX11 sessionWayland session
Desktop to phoneAutomatic, also while the Tetheron app is closed.Automatic only while the Tetheron window is focused.
Phone to desktop, sent by hand on the phoneWorks.Works. If the Tetheron window is not focused, click Copy on the message it shows.
Phone to desktop, automaticNeeds the adb grants or the enhanced tier.Same, with the Copy step above.

Copy on the desktop, paste on the phone

Copy text on the desktop, then paste on the phone.

On Wayland this works only while the Tetheron window is focused, because a Wayland program cannot read the clipboard without focus. The desktop app has no button that sends the clipboard by hand. To send text at any other time, use the command line, where 5b7a is a unique prefix of the device id from tether-cli devices:

tether-cli clipboard 5b7a send "text for the phone"
wl-paste | tether-cli clipboard 5b7a send

Without text, the command reads standard input. The second line sends the current Wayland clipboard. send fails when Sync clipboard does not allow the desktop-to-phone direction.

On X11, sync continues while the app is closed if xclip is installed (package xclip on Debian, Fedora and Arch Linux). The daemon uses it in place of the app.

Send the phone’s clipboard to the desktop

Android does not let a normal app read the clipboard in the background, so this direction needs an action on the phone. Copy the text on the phone, then use one of these:

  • Tap the Send clipboard tile in the phone’s Quick Settings panel. Add the tile to the panel once.
  • Tap Send clipboard on the persistent “Connected to” notification.
  • Select text in any app, tap Share and choose Send to PC.

If more than one desktop is connected, the phone asks which one.

The text lands in the desktop clipboard. On Wayland, when the Tetheron window is not focused, the app shows a “Clipboard from” message in its window, or a desktop notification when the window is hidden. Click Copy on it. While the app is closed, the daemon sets the clipboard with wl-copy (package wl-clipboard). To keep the app running in the tray, switch on Start Tether in background at login in Preferences.

The Clipboard sync row on the phone’s Overview tab in the desktop app shows the last text from the phone, with a button that copies it again. tether-cli clipboard 5b7a get prints the same text. It does not ask the phone for its current clipboard.

Make phone-to-desktop sync automatic

With two one-time grants, text you copy on the phone reaches the desktop within about a second.

  1. Connect the phone with adb. Set up the enhanced tier shows how.

  2. Run on the desktop:

    adb shell pm grant org.tether.android android.permission.READ_LOGS
    adb shell appops set org.tether.android SYSTEM_ALERT_WINDOW allow
    
  3. Copy text on the phone and paste on the desktop to check.

Android may show a short “pasted from your clipboard” message on the phone for each copy. The grants survive app updates but not an uninstall.

While the enhanced tier’s helper runs, you do not need the two grants. The helper reports the phone’s clipboard itself.

Switch clipboard sync off

On the desktop:

  1. Open the main menu and choose Preferences (Ctrl+,).
  2. Under Clipboard, set Sync clipboard to Off, Desktop to phone, Phone to desktop or Both directions.
tether-cli config clipboard-sync off

The values are off, to_phone, from_phone and both. Without a value, the command prints the current setting.

On the phone, switch off Clipboard in the Tetheron app’s Settings. The desktop stops offering the feature for that phone after the next connection.