LYXCLIENT(1)
π LYXCLIENT π
okay so bestie, this is lyxclient from the lyxclient 2.5 era β it's the little tool that lets you slide into a running LyX editor's DMs and send commands. No cap, it's giving "middleman but make it iconic" π
β¨ NAME β¨
lyxclient β send commands to a running LyX editor π«Ά
πΈ SYNOPSIS πΈ
lyxclient [ options ]
π DESCRIPTION π
okay so picture this: when LyX starts up, it makes a unique, per-process local socket in the temporary directory β like its own little private chatroom where commands can be dropped off π¬. That means LyX is literally acting like a server, accepting connections from clients, and lyxclient is that client, bestie.
lyxclient handles all the connection and communication protocol details for you, so you (or your app) can just focus on what you actually want to say to LyX. it's giving "let me handle the awkward small talk so you can get to the real conversation" β¨
π SERVER IDENTIFICATION OPTIONS π
okay so first things first: lyxclient has to figure out which server (i.e. which running LyX) it's supposed to send commands to. these options are how you tell it, no cap.
-ppid β specify the pid of the running LyX process thatlyxclientshould send commands to. like, "hey, this specific LyX, not the other one" π-asocket_address β specify explicitly which socket special file should be used. these special files live insidelyx_tmpdir<lyx_pid><hash>, in the temporary directory. there's one per running LyX process. it's giving "I know exactly which door I'm knocking on" πͺ-ttmp_dir β if LyX is configured to use a temporary directory other than/tmp, you gotta informlyxclientabout it. don't leave it guessing, bestie π
okay so if neither-anor-pis invoked,lyxclientwill search for sockets in/tmp(or tmp_dir if the-toption is used) and use the first socket it can actually connect to. this is safe if you're running only one LyX process at any one time β but if you've got multiple LyXes running, it's giving "eeny meeny miny moe" and you might not get the one you wanted π
π₯ COMMAND MODE OPTIONS π₯
lyxclient can send commands to LyX from both the command-line and from standard input. LyX commands documentation can be found in LyX Help menu β go look, it's there, iykyk π
-ccommand β send a single command, print LyX information to standard output, and exit. theLYXCMDprefix is needed in the given command. one and done, slay π-gfile line β this is simply a wrapper for the command'command-sequence server-goto-file-row file line; lyx-activate'. it's used by the PDF and DVI previewer to elicit inverse search and focus the LyX window. it's giving "take me to the exact spot and make it main character energy" πβ¨
if neither-cnor-gare used,lyxclientwill regard any standard input as commands to be sent to LyX, printing LyX's responses to standard output. commands are separated by newlines (the'\n'character). to finish communication and terminate thelyxclientprocess, send the command'BYE:'β yes, literally say bye, it's iconic π
π¦ MISCELLANEOUS OPTIONS π¦
-nname β when starting communication,lyxclientsends an identifier string to LyX. by default, this string is"PPID>PID", wherePPIDislyxclient's parent pid andPIDislyxclient's pid. use this option to override this default. it's giving "I'm not just anybody, I'm me" πββοΈ-hβ print thelyxclientversion and summarize its usage. the classic "who am I and what do I do" moment π«Ά
π ENVIRONMENT π
LYXSOCKETβ can be used to specify the socket special file that must be used. LyX sets this variable. it is overridden by the-aoption. so like,LYXSOCKETis the vibe, but-awalks in and says "actually, no" π€
β SEE ALSO β
π AUTHORS π
JoΓ£o Luis M. Assirati <assirati@fma.if.usp.br> is the principal author of lyxclient. give them their flowers, periodt π
and that's the whole vibe, bestie β lyxclient version 2.5, dated 2026-09-07. go send some commands, you got this πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lyx 2.5.3-bp160.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lyx 2.5.3-bp160.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lyx 2.5.3-bp160.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lyx 2.5.3-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms