Terminal, files, desktop
Terminal
tmux sessions on your computer, opened from the phone, that keep running when it locks or loses signal.
Every terminal in Link is a tmux session on your computer. Closing the app, locking the phone or walking out of Wi-Fi range doesn't stop what's running: the session stays on the computer, and Link attaches to it again when you come back.
Requirements
tmux on the computer. If it's missing, the Terminal tab says so and offers Open a plain shell, which works but ends when the connection does. Install tmux with your package manager (sudo apt install tmux, sudo pacman -S tmux, brew install tmux).
- Linux: Link Host brings its own tmux, so there's nothing to install. If the computer has tmux already, Link uses that one.
- macOS: installing Link Host with Homebrew installs tmux too. With the one-line installer, run
brew install tmux.
link-host doctor says which tmux Link uses.
Using it
- The tab lists the computer's tmux sessions, including ones you started at your desk, whatever their names (
tmux new -s "api server"opens too). Open one, or start a new one. Rename and close them from the list; names given in Link use letters, numbers, dashes and underscores. - Choosing another computer closes the open terminal; its tmux session keeps running.
- Sessions opened by Link hide tmux's status bar (the app's header names the session) and turn on mouse mode, so a drag scrolls tmux's history. Both settings apply to that session only, never to your
tmux.conf. - The toolbar above the keyboard has the keys a phone keyboard lacks: arrows, Ctrl C, Esc and Tab, plus a button that brings the keyboard back.
- On a slow connection, letters you type appear at once, underlined, until the computer confirms them.
- When the connection drops, the terminal reattaches by itself; nothing on the computer is lost.
- From the next app update, coming back after Link was closed shows the list of terminals and the last screen of the one you open straight away, dimmed and marked "As of 5 min ago · connecting…", until the computer answers.