Linux
agent-eye works the same on Linux, with these differences:
- The background process is a systemd user service.
agent-eye installwrites~/.config/systemd/user/agent-eye.serviceand starts it withsystemctl --user; its log isjournalctl --user -u agent-eye. It runs while you are logged in;loginctl enable-linger $USERkeeps it running after you log out. Where there is no systemd, runagent-eye daemonyourself (install --no-serviceskips the service). - Resume and Start open a terminal window when there is a display (
DISPLAYorWAYLAND_DISPLAY), with the first ofxdg-terminal-exec,x-terminal-emulatorand$TERMINALthat is installed ([board] resume = "auto", the default). The board says which:TERMINAL (xdg-terminal-exec). With no display or no such program they copy the command instead, and the board saysCOPY.resume = "copy"always copies;resume = "terminal"skips the display check. In the picker, Enter and Ctrl-G run the command in your current terminal as usual. - The background service may have no display. A systemd user service only gets
DISPLAYorWAYLAND_DISPLAYwhen your session passes them on (systemctl --user import-environment DISPLAY WAYLAND_DISPLAY, which most desktops do at login). Without them the board copies. A terminal the service opens stays open when the service restarts (the unit usesKillMode=process). - Copying uses
wl-copy,xcliporxsel, the first that works. With none, the command is printed instead. The background process copies for the board, and it may have no display; then the board shows the command. eye board on --openopens the board withxdg-open.