LensDesk guide
Setting up, automation, play and help, for LensDesk 1.0.3.
Setting up
Installing #
Installing LensDesk on macOS, Windows or Linux, and getting past the Windows first-run warning.
The downloads are on the LensDesk page. The Mac app is signed and notarized by Apple, so it opens like any other app. The Windows build isn’t signed with a paid developer certificate, so Windows warns you the first time you run the installer; getting past it is a one-time step on each computer. Linux doesn’t warn.
macOS
LensDesk runs on Apple Silicon: any Mac from late 2020 on.
- Open the
.dmgand drag LensDesk into your Applications folder. - Open Applications and double-click LensDesk. The first time, macOS asks “LensDesk is an app downloaded from the Internet. Are you sure you want to open it?” Click Open.
Windows
LensDesk needs 64-bit Windows.
- Run
LensDesk_<version>_x64-setup.exe. - Windows SmartScreen shows “Windows protected your PC.” Click More info, then Run anyway.
- Follow the installer, then start LensDesk from the Start menu.
Linux
LensDesk needs a 64-bit Intel or AMD computer running Ubuntu 22.04, Debian 12 or newer. Older distributions lack the libraries it is built against.
The .deb package
For Ubuntu, Debian, Linux Mint, Pop!_OS and similar. In a terminal, in the folder you downloaded it to:
sudo apt install ./LensDesk_<version>_amd64.deb
Keep the ./: without it, apt looks for a package of that name online instead
of the file. apt also installs anything LensDesk needs that you don’t have. It
may end with a note that the download was “performed unsandboxed as root”; you can
ignore it.
Start LensDesk from your applications menu, or type lensdesk in a terminal.
To uninstall it, run sudo apt remove lens-desk.
The AppImage
For any distribution. It is one self-contained file and installs nothing. Keep it where you like, make it executable, and run it:
chmod +x LensDesk_<version>_amd64.AppImage
./LensDesk_<version>_amd64.AppImage
An AppImage doesn’t add itself to your applications menu. If it won’t start and the error mentions FUSE, run it this way instead:
./LensDesk_<version>_amd64.AppImage --appimage-extract-and-run
That unpacks it to a temporary folder on every start, which is slower but needs nothing installed. To fix it for good, install your distribution’s FUSE package.
First run
Characters and connecting covers adding your first character.
Updating
Download the new version and install it over the old one:
- macOS: drag the new LensDesk into Applications and choose Replace.
- Windows: run the new setup
.exe. - Linux: install the new
.debthe same way, withsudo apt install ./LensDesk_<version>_amd64.deb, or replace the old AppImage file with the new one.
Your characters, triggers, aliases and settings are kept in a folder separate from the app, so they carry over (Your data and backups).
Characters and connecting #
Adding a character, logging in, switching, logging off, and managing characters in Settings.
Your first character
The first time LensDesk opens it shows “Welcome to LensDesk”. Enter your Character name and Password and click Add character.
The password is saved on this computer in plain text, in a file only your user account can read:
- macOS and Linux:
~/.lensdesk/knowledge/characters/<character>/config.json - Windows:
%APPDATA%\LensDesk\knowledge\characters\<character>\config.json
Adding a name that already exists changes its saved password.
Connecting
Every new window, and every window after a restart, opens empty, with “No character in this window yet” and Choose a character. The window’s title, Select Character ▼, opens the same list of your saved characters, as does its ▼ button. Pick one and LensDesk connects and logs in.
LensDesk answers the game’s name and password prompts itself, answers yes when the game asks about a character already playing, and presses Enter at “hit return”. Don’t type your password at the game’s login prompt. If the game asks for it anyway, the command line hides what you type.
With a wrong saved password, LensDesk shows no message of its own: the automatic login stops and you finish logging in yourself.
Switching character
Click the title again and pick another name. LensDesk sends quit for the
current character, then logs the new one in, and a line in the window marks
the change. If you have unsaved automation changes, it asks first:
Discard or Keep editing.
Logging off and reconnecting
There is no Disconnect button. Type quit (or qq), and the window shows
“Disconnected — you quit” with Reconnect. A dropped connection shows
“Disconnected — connection lost”. LensDesk never reconnects by itself: click
Reconnect when you want to. Closing a window also drops its character
(Windows and workspaces has the details).
The connected sign in the header and the status bar at the bottom report LensDesk’s link to its own local server, not to the game, so they still say connected after you quit.
Managing characters
Open ⚙ Settings, then Characters…. + Add Character opens New Character, with Username and Password; click Create. The first-run screen calls the same thing Character name.
Select a character to change it. Username can’t be changed; New password changes the password, or leave it blank to keep the current one. Below are the character’s Prompt, Recharge and Spam Protection settings, and Save. The form’s heading shows the character’s name, with its internal key beside it.
To remove a character, click Archive, tick Show archived, select it and click Delete. LensDesk asks you to confirm, then permanently deletes the character’s folder and everything in it: its login, settings, spell and skill lists and spellup settings.
Windows and workspaces #
More windows for more characters, arranging panels, and the 1–5 layout chips.
More windows
In the desktop app, + in the header opens an empty window for another character; pick one with Choose a character. Its tooltip says Add character, but the window starts empty.
Each game window’s title bar has ⌫ (Clear this window), ▼ (Change character), ≡ (Toggle sidebar), ⏸ (Stop automation), K (Keepalive) and × (Remove character). The × closes the window and drops its character from the game without asking. The first window has no ×.
Arranging panels
Drag a panel by its title bar (a game window’s title, the sidebar’s header or the Comms handle) and drop it on another panel. Drop it near an edge, in the outer quarter, to split that panel on that side; drop it in the middle to add it as a tab. Drag the line between two panels to resize them.
Tabs and drag labels show internal names, such as “Window-3”, rather than character names.
LensDesk remembers one arrangement for each number of windows and brings it back when you have that many open again. It stops saving the arrangement while a workspace is active or any window is hidden.
Workspaces: the 1–5 chips
The chips beside the LensDesk name are saved layouts.
- ⌥-click a chip (Alt-click on Windows and Linux) to save the current layout into it. LensDesk says “Saved the current layout as workspace N.”
- Click a saved chip to switch to it. ⌘1 to ⌘5 (Ctrl on Windows and Linux) do the same from the command line, for saved chips only.
- Click the lit chip to leave the workspace; the screen stays as it is.
A workspace doesn’t update itself: ⌥-click its chip again to save changes. Switching never logs anyone in or out. Windows a workspace leaves out are hidden and keep running, and windows it needs that don’t exist open empty.
The Windows list
Windows lists every window, shown or hidden, with its state: connected, link dead, no character or server down. hide takes a window off screen and keeps it running; show puts it back, without saving that to the workspace. The × beside a window closes it. Closing one with a character logged in asks first, because it drops the character: Close and drop or Keep it.
Ctrl+Tab and Ctrl+Shift+Tab move to the next and previous game window on screen, with Control on the Mac too.
Your prompt #
What LensDesk reads from your prompt, which codes each feature needs, and how to set it.
LensDesk reads your prompt; it never sets it. It learns the prompt when you
type config prompt … or configure, or click Send to game in Settings,
and saves it with the character. help config prompt covers the game’s own
prompt commands.
The codes LensDesk reads
%h hit points, %m mana, %v vitality, %y willpower, %U morale,
%A armour, %X experience to level, %a alignment, %g gold,
%p platinum, %q quest points and %z zone.
What each feature needs:
%h: the hit point bar and the low hit point sound.%m: the mana bar, spellup (it casts only with mana to spare) and recharge (it sleeps and wakes on mana).%y: spellup’s psionics.%z: the wilderness map, the zone in Navigation, and@zone.
Anything that needs a code your prompt leaves out is switched off until you add it. A missing bar shows “—”, and its tooltip says which code to add.
Messages above the command line
When LensDesk doesn’t know a character’s prompt, a notice above the command
line says so. Read it from the game sends configure and reads the prompt
from the answer; it gives up after twelve seconds. When it works, the notice
shows the prompt it captured and anything still switched off for want of a
code. Other notices say the prompt has changed since it was last read, or
that LensDesk hasn’t recognised it in the game’s output.
Setting the prompt in LensDesk
Open ⚙ Settings, Characters…, select the character and go to its Prompt section. It shows the current prompt and where it came from, with a ✓ or ✕ beside each feature. Two buttons fill in a ready prompt, the compact preset or the full one; Write each { as {{ and Edit it without its colours help with colour codes. Send to game sets it in the game, for a character that’s logged in. The form’s Save doesn’t send the prompt.
LensDesk warns when a prompt is longer than 50 characters, the most the game
shows unless you have donated (the full preset is 58), when it has codes
LensDesk doesn’t know, and when its last line doesn’t end in a line break, in
which case end the prompt with %c or turn on config telnetga.
The notices’ Open Characters → Prompt button opens the character list, not that character’s prompt, and the notices leave out that Characters is under ⚙ Settings.
Automation
Aliases #
Short commands that expand into longer ones, with arguments.
Making an alias
Click Automation in the header, choose the Aliases tab and click + Add. You can also select text in a game window, right-click it and choose Create alias from selection. Fill in the form and click Save. Close the panel with its close button; Esc doesn’t close it.
- Name is a label for your own reference.
- Folder files the alias. Type
/to nest folders, as incombat/heals, or choose + New folder…. - Keyword or Pattern is what you type, read according to Match (below).
- Expansion is what LensDesk sends instead.
- Run other aliases on what this sends, on by default, lets the expansion set off further aliases.
Preview, under Test, shows what a command would expand to before you save.
First word or whole line
With Match set to First word, the alias fires when your command starts
with its keyword, whatever the case. %1 to %9 are the words after the
keyword, and %* is all of them.
With Whole line, the whole command must match the pattern. * matches
anything, %d digits and %w a run of non-space characters. Brackets
capture: the first ( ) becomes %1, the next %2, and %* is the whole
command. Match case applies to Whole line aliases only.
LensDesk tries Whole line aliases first, in the order they are listed, and the first match wins. Then it looks up First word keywords.
Writing the expansion
%1to%9: that argument%-1to%-9: that argument and everything after it%*: the whole argument line@name: a variable’s value (see Variables)%%: a literal%;: a break between commands
An argument you don’t supply expands to nothing. There is no %0; use %*
for the whole line.
Examples from LensDesk’s help: the keywords hp, chat (*) and psi, and
the expansions cast "heal" %1, recall ; sleep ; meditate and
say hi @last_target. Keyword r with the expansion tell @last_teller %*
replies to whoever last sent you a tell, once a
trigger stores their name in last_teller.
Who an alias is for
Scope is Global or Specific characters. A new alias starts out set to the character you’re playing.
Each alias has a checkbox that turns it on and off, and a folder’s checkbox switches everything inside it. STOP ALL leaves aliases working.
Triggers #
Lines from the game that set off a command, a highlight, a gag or a variable.
Making a trigger
Click Automation, choose the Triggers tab and click + Add, or select a line in a game window, right-click it and choose Create trigger from selection. The form runs from Identify through Match, Action, Activation and Scope to Test; click Save when it’s done.
Fires on decides what the trigger watches: Line (each line of game text), Prompt, Multi-line (a Window of 2 to 20 lines), or Timer (see Timers).
Patterns
Pattern is what to look for, and Mode says how to read it. A new trigger starts in Literal.
- Literal: plain text, anywhere in the line. It captures nothing but
%0, the whole match. - Wildcard (CMUD-style):
*matches anything (as much as it can),%xanything (as little as it can),%ddigits,%wa run of non-space characters,%aa word and%sspaces. Brackets capture into%1,%2and so on.~makes the next character literal, and^and$anchor the pattern only as its first or last character. - Regex: a Python regular expression. Groups capture into
%1,%2, or${name}for a named group.
Match case makes the match case-sensitive. %1 to %9 written inside a
pattern are literal text, not references to earlier captures, and a pattern
never reads variables.
A capture the pattern didn’t fill stays as literal text in the action.
Condition (optional) adds a test the line must also pass, such as
%1 == @friend or @zone contains "Arena". Quote text in a condition.
Actions
Action is one of Send command, Highlight line, Gag (hide line)
or Set variable. The box beside it becomes Command, Highlight color
or Set variable to match. A command can use the captures and variables, as
in whois %1.
Activation
- Fire once turns the trigger off after it fires.
- Fire after N matches waits for that many matches.
- Stop here keeps triggers further down the list from also firing on the same line.
- Priority sets the order: lower runs first, and the default is 100.
- Max fires sets how many times it may fire within a short time. Past
that, LensDesk suspends it for the session and its row shows
!. Left empty, LensDesk’s default applies.
Testing
Live tester (recent MUD output — edit freely) runs the pattern against recent game text, which you can edit to try other lines. It isn’t available for Prompt or Timer triggers.
Turning triggers off
Each trigger has a checkbox, and a folder’s checkbox switches everything in it. Each game window’s ⏸ button (Stop automation, then Resume automation) pauses that window’s automation. STOP ALL turns off triggers, timers, spellup and recharge for every connected character, and RESUME ALL turns them back on.
Examples
LensDesk ships these as example cards:
- Capture a name: Wildcard
^(%a) tells you *, sendingwhois %1. - Name who died:
^(*) is DEAD!!, settinglast_kill=%1. - Only for a friend: the same kind of pattern with the condition
%1 == @friend. - Add up a number: setting
xp_total=@xp_total+%1. - Act on a number:
You get (%d) gold coinswith the condition%1 >= 100, sendingsplit %1. - Exact text: Literal
is DEAD!!, sendingget all corpse.
Variables #
Named values that triggers set and that triggers and aliases read.
A variable holds a piece of text. Triggers write variables with their
Set variable action, and triggers and aliases read them as @name or
${name}.
Making a variable
Click Automation, choose the Variables tab and click + Add. A
variable has a Name, a Folder, a Value, a Scope and, once it
has changed, Last changed. A name starts with a letter or _ and then uses
only letters, digits and _.
From the command line, #var name value sets a variable and
#math name expr sets it to the result of a sum.
Setting one from a trigger
In a trigger’s Set variable box, write name=expr. Everything after the
first = is the value, a ; included. For example: last_gold=%1,
target=${mob} or kills=@kills+1.
Built-in values
Fourteen read-only values come from your prompt: @hp, @mana, @vit,
@will, @morale, @xp, @align, @qp, @gold, @plat, @armor, @zone,
@quest_timer and @gqmobs. One your prompt doesn’t print is unset, and a
condition that uses it is false. Your prompt
covers which codes to include.
Scope
A variable set for a specific character overrides a global one of the same name.
Typing @, % or $ in an automation field opens a list of suggestions:
↑ and ↓ move through it, Enter or Tab accepts and Esc closes it.
Timers #
Commands sent on a schedule, and one-off delays from the command line.
A timer is a trigger whose Fires on is Timer. Make one from the Triggers tab, or from the sidebar’s Timers section.
Schedules
Schedule is Repeats every, Once, after Start or Daily at a time. The box beside it is Every, Wait or At, and First after sets the first wait.
Durations can be written 90, 90s, 5m, 1m30s, 1h or 1:30; the
shortest is a tenth of a second. Daily times use the 24-hour clock, as in
03:55.
Start when I log in starts the timer each time the character connects. A new timer doesn’t run until you save it. Once saved, Start (or Restart), Stop, Reset and Fire now control it.
The Timers section
The sidebar’s Timers section starts folded. Each row has ▶ or ■ to start or stop it, Reset, Fire now and Edit, with tags such as all characters and at login.
+ New timer adds one quickly: choose Repeat or Once, then
This character or All characters, and click Add. A timer made with
Once this way isn’t saved. With no timers, the section suggests one:
Repeat 5m drink fountain.
From the command line
#timer start <name>,#timer stop <name>and#timer reset <name>control a saved timer.#timerslists them.#after <duration> <command>sends a command once, after a delay.#after <duration> {<cmd>;<cmd>}sends several.
At most 50 #after commands can wait at once. STOP ALL turns timers off
and deletes any waiting #after commands, and while timers are off, the
section says so.
Input commands #
What the command line accepts besides game commands.
Typing commands
Enter sends the command; with the line empty, it advances the game’s pager.
Shift+Enter starts a new line. ; separates commands, as in
kill goblin;loot corpse, and so does a line break. LensDesk splits the line
before any alias runs, except inside #after N {…}.
↑ and ↓ step through up to 200 earlier commands, kept until you close LensDesk. Password commands are never split or kept in the history.
Tab completes / commands from the list that pops up as you type. Settings,
then Keyboard shortcuts, lists the rest.
Command echo
Each command sent to the game shows in the game window as > command.
⚙ Settings, Command echo picks which: All commands,
LensDesk’s only (spellup, recharge, triggers, timers and auto-login, not
what you type) or None. The choice applies to every character. Hidden
commands are still sent.
Commands LensDesk handles itself
/ping,/restart,/reloadand/setup./recharge <stone>..., within <container>to name where the stones are, and/recharge stopor/recharge status(see Recharge).#var,#math,#timer,#timersand#after(see Variables and Timers).
Any other / command goes to the game unchanged.
Not supported
There is no speedwalk syntax, no repeat count (such as #3 n), and no way to
escape a ;.
In play
Comms #
The panel that sorts channels, info lines, NPC speech and skill gains out of the game text.
Comms in the header shows and hides the panel, and its × hides it too.
Lines that go to Comms also stay in the game window. With the game’s
Timestamp channel on (channel timestamp), lines are sorted the same way and
keep their time.
The sections
- Channels: gossip, chat, tells and asks, group tells, OOC, clan, worship, grats, newbie help, shout, room OOC and telepathy, with your own lines on them and the history the game replays.
- Info: lines starting
[INFO],[QUEST],[GAMES]or[PK INFO]. The game’s “The game is currently in … mode.” line is left out. - NPC / Room: what mobs say, say lines in the room, and mobs moving.
- Gains: skill gains from every character, including characters with no
window open. Each row shows the time, the character, the skill and its
percentage; practices are tagged
prac. The last 200 are filled in when LensDesk starts.
Using the panel
Click a section’s heading (▾ or ▸) to fold it; LensDesk remembers. Drag the lines between sections to resize them. Each section’s ⌫ clears it, and each keeps its last 200 lines.
With several characters connected, a line they all saw appears once. A line is tagged with a character’s name only when not every connected character saw it.
Comms has no way to hide private messages. The only switch for that is in Report a problem…, for the report file (Reporting a problem).
Spellup #
Keeping your buffs up, and curing silence, blindness, poison and curses.
The sidebar’s Spellup section keeps your buffs going. It groups them as AC / Defense, Saves, Stats, Utility, Dispel Fodder and Psionics.
Teaching it your spells
Type spells and page through to the end; showskill spells or
showskill known spells work too. Only a complete list replaces the one
spellup knows. A partial or filtered list keeps the old one, and the panel
says why, for example: “Page to the end with Return (not Q), or type configure
scroll 0 first.” Psionic powers come from skills.
Turning it on
The switch at the top of the section turns spellup on; it has no label.
Turning it on casts your equipment buffs and sends af full, which you’ll see
in the game window. Spellup also has a switch in the sidebar’s Modules
section, which lists LensDesk’s parts by their internal names.
When it casts
- It recasts a buff when the game says it has worn off.
- It casts nothing during a fight; equipment buffs wait until the fight ends.
- It needs at least 30% mana. That floor can’t be changed in LensDesk.
- It holds every cast while you are silenced, and holds while you are blind until the blindness cure has been dealt with.
- It sends a hidden
affects fullafter the first prompt at login, after fights, and when a buff is down to its last tick, at most once a minute, then casts anything missing.
Spellup needs %m in your prompt, and psionics need %y
(Your prompt). Willpower floor sets the
willpower psionics keep in reserve; it starts at 50%.
The list
Click a spell’s name to cast it, while spellup is on. Its × (Toggle blacklist)
stops spellup maintaining it. The number beside a buff is the ticks left, and
on marks a permanent one. counter magic and any newly learned psionic power
start out blacklisted.
Elemental ward, major ward and mage blade each have a picker for their element, and minor ward takes any spell name. For fists and protection you choose one, since casting another replaces it; protection starts as protection evil.
Maintain Mass Sustain, off by default, casts mass sustain out of combat at full mana once any buff is below 50 ticks.
Cures
✚ Cures has Silence, Blindness, Poison and Curse, each with its own switch, and a chip showing ok, afflicted, curing, gave up or not known. Cures can cast mid-fight and below the mana floor, with up to three tries, three seconds apart. Curing silence needs mindcast and cancel magic.
Stopping it
STOP ALL in the header turns off spellup, triggers, timers and recharge for every connected character, and the header gets a red edge. RESUME ALL turns them back on.
Recharge #
Recharging gems and stones one copy at a time, sleeping for mana when it runs low.
Running it
/recharge <stone> [<stone> ...] [in <container>]
/recharge stop
/recharge status
For each copy of a stone, recharge identifies it, recharges it until it
“glows brilliantly”, puts it in the container and moves to the next copy. A
stone already at 100% is just put away. Name the stone without a number:
recharge counts the copies itself, so 2.pearl is refused.
It won’t start during a fight, without a container, if you don’t know
identify and recharge, or with recharge switched off in the sidebar’s
Modules section. Typing a direction or recall cancels a run; other
commands are fine. Spellup pauses for the whole run.
Progress shows in the game window, as in “[recharge] started: pearl gem ->
cloak”, then sleeping and waking lines and “[recharge] done”. /recharge status
prints the raw state.
Settings
Open ⚙ Settings, Characters…, select the character and go to its Recharge section:
- Container keyword: where finished stones go.
- Before sleep and After wake: commands to send around a sleep.
- Sleep below mana %: 10 to start with.
- Wake at mana %: 90 to start with.
- Use dreams: on to start with.
Each field switches between Using global and Overriding global, and a
change applies from the next /recharge. Recharge sleeps and wakes on mana,
so it needs %m in your prompt (Your prompt).
Map #
What the wilderness map needs, how to zoom and follow, and what it shows inside a zone.
Map in the header shows and hides the map, a panel you can drag by its title bar and resize by its edges and corners. When the LensDesk window is 700 pixels wide or less, the map docks instead.
The map needs your zone in the prompt. Without %z it says: “The wilderness
map needs your zone in the prompt. Add %z to it to turn the map on.”
Your prompt has the details.
Moving around it
Zoom with − (Zoom out), + (Zoom in), the slider between them, the mouse wheel or a pinch, from 0.1× to 30×. The map opens at 4× the first time and remembers your zoom after that. Terrain letters appear above 8×.
After you pan away, ⌖ (Follow me again) brings the map back to you. With two or more characters, Whose position to show chooses whose.
Continent names show at every zoom, major zones from 0.6× and every zone from 1.2×. Zone dots always show.
Where you are
- In the wilderness, the map shows you on the terrain.
- In a zone, it shows a hollow ring at the zone’s spot.
- Away from the wilderness entirely, it says to go there through a zone exit.
- If it has lost your position, it asks you to leave and re-enter through a zone exit. Until it knows where you are, it shows the whole atlas.
Credits
The wilderness terrain grid is from Jenifer’s lensmap (jeniferirwin), released under The Unlicense. The zone data comes from lensmoor.wiki.
Note editor #
A notepad for notes, descriptions and long posts, with colour codes shown as they'll look in game.
Editor in the header opens the note editor for the character in the
focused game window; its title reads “
Each character has its own draft, column width and window position, saved automatically on this computer. A counter shows the characters and lines.
Plain and colorized
The editor starts in plain view, showing the colour codes as you type them.
The view button (Ctrl+P) switches to the colorized
view, which shows the text as it will look in game, and back; the button is
labelled with the view it switches to. ? opens the colour code reference:
foreground and background codes, the special codes from help color, how
your own config color setting affects what you see, and the two commands
for the game’s editor.
The colour buttons (r, R, g, G and the rest, then x, {< and
{>) insert a code; with text selected, they wrap it, as in {R…{x.
Layout
Left, Center, Right and Justify wrap the text to the width in col, from 20 to 120 characters (78 to start with). Colour codes don’t count towards the width. In plain view they apply to the selection, or to everything if nothing is selected.
Finding and replacing
Find (Ctrl+F) and Replace (Ctrl+H) open a bar with previous and next (or Shift+Enter and Enter), Aa for case, Replace and Replace All. Finding switches to plain view. The Ctrl shortcuts work only in plain view.
Clear empties the editor after a second click within three seconds.
Sending it to the game
Open the game’s own editor first: LensDesk doesn’t open it for you. Then
Send to MUD streams the text in, a line every tenth of a second, turning
blank lines into ^ and adding {x at the end. Cancel stops it part way.
The editor can send up to 1,000 lines.
When it finishes, type @ in game to post the text, or # to abort and
discard it.
Keypad and shortcuts #
The numeric keypad as a movement pad, and every keyboard shortcut LensDesk has.
The keypad
Open ⚙ Settings, then Keypad…. Tick Enable keypad keys (it’s off to start with) and the numeric keypad sends the commands in the grid; click Save. Show contents if Ctrl held down shows what each key sends while you hold Ctrl.
To start with: 8 north, 2 south, 4 west,
6 east, 7 northwest, 9 northeast,
1 southwest, 3 southeast, + up,
- down, 0 look, / inventory and
* score. 5 and . start empty.
One keypad serves every character. It works whatever Num Lock says, the keypad’s Enter is Enter, and its keys do nothing at the password prompt or while a dialog is open. Ctrl with keypad 1 to 5 switches workspace, unless Show contents if Ctrl held down is on.
Keyboard shortcuts
⚙ Settings, then Keyboard shortcuts, lists them in LensDesk. In short:
- Enter sends the command; on an empty line it advances the
game’s pager. Shift+Enter starts a new line, and
;separates commands. - ↑ and ↓ step through earlier commands.
- Tab completes
/commands. - Ctrl+Tab and Ctrl+Shift+Tab move between the game windows on screen; Control on the Mac too.
- ⌘1 to ⌘5 (Ctrl on Windows and Linux) switch workspace, and ⌥-click or Alt-click on a chip saves one (Windows and workspaces).
- Esc closes an overlay, the editor, the suggestion list, or the scrollback split, where ▼ Latest also returns you to the newest text.
In the note editor: Ctrl+P, Ctrl+F and Ctrl+H (⌘ on the Mac), and Tab inserts a tab (Note editor).
Sounds #
Which sounds play when, muting them, and where they come from.
Mute in the header silences everything. ⚙ Settings, then Sounds…, opens Sound Settings, with Mute, Volume (60% to start with) and Reset defaults.
Rules
The rules are in two groups, Comms Triggers and Event Triggers, with the columns Rule, Sound file and 🔊 Play sound. Each rule is set to Off, Unfoc (only while the LensDesk window isn’t the one in front) or Always, and ▶ plays its sound to try it.
To start with:
- Always: a tell from an immortal, your name on a channel, a tell from a player, an info line, a death, and hit points at or below 25% (it plays again only after they go back above 30%).
- Unfoc: gossip and the other channels.
- Off: group tells and NPC speech.
With several characters connected, each sound plays once.
Some rule names come from LensDesk’s internal names, such as “Npc speech” and
“Low hp”. Reset defaults resets the rules, not mute or volume. Ticking
Mute in the dialog doesn’t change the look of the header’s Mute button
until the window reloads (/reload) or LensDesk restarts.
Where the sounds come from
The forty sounds are from the Android Open Source Project, under the Apache License 2.0.
Help
Your data and backups #
Where LensDesk keeps your characters, passwords and automation, and how to copy them.
LensDesk keeps your data in one folder on your own computer:
- macOS and Linux:
~/.lensdesk/ - Windows:
%APPDATA%\LensDesk\
The folder is separate from the app, so upgrading LensDesk leaves it alone and your characters, triggers, aliases and settings carry over.
Your passwords
Each character’s password is stored in the folder in plain text, in
knowledge/characters/<character>/config.json. The file is readable only by
your user account, but any copy of the folder carries the password with it, so
keep backups somewhere private.
An older install may also have left a credentials.json in the folder.
LensDesk no longer reads or writes it, but it can hold passwords from then;
delete it.
What’s in the folder
config.toml: sound rules and other settings.triggers.json,aliases.json,variables.jsonandkeypad.json: your automation and keypad, shared by every character.knowledge/characters/<character>/: each character’s login, settings, spell and skill lists, skill gains, spellup settings and buff state.logs/: LensDesk’s own logs, deleted after seven days;session_logs, which hold the raw game text, tells included, and are never deleted; andfrontend.log.diagnostics/: the files Report a problem… makes. The newest five are kept.exports/: Automation exports, used only when your Downloads folder can’t be written to.sounds/: your own sound files, if you add any.
What isn’t in it
Window layouts, the 1–5 workspaces, note editor drafts, your Vitals choice, folded Comms sections, sound volume and mute, and text size are kept in the app’s own browser storage, not in the folder. Copying the folder doesn’t back them up.
Backing up and restoring
Quit LensDesk, then copy the folder. On macOS or Linux, in a terminal:
cp -R ~/.lensdesk ~/lensdesk-backup-$(date +%F)
On Windows, paste %APPDATA% into the File Explorer address bar and copy the
LensDesk folder somewhere else.
To restore, quit LensDesk and put the copy back in place of the folder.
Exporting automation
The Automation panel’s Export saves your triggers, aliases and variables,
the global ones and the current character’s, to your Downloads folder as
automation-<character>.json. It never overwrites a file: the next export is
automation-<character> (1).json, and so on. The keypad, your settings and
your characters aren’t included. Import reads such a file back and merges
it with what you have.
Removing a character and clearing up
To remove a character, Archive it and then Delete it (Characters and connecting). That deletes its folder and everything in it.
Old session logs, the report files in diagnostics/, the exports/ folder
and credentials.json can be deleted by hand whenever you like.
Reporting a problem #
Making a report file, what it holds and leaves out, and where to send it.
Report a problem… is in the status bar at the bottom of the window, in the ⚙ Settings menu, and at the foot of the Keyboard shortcuts overlay. It puts what the developers need to understand a problem into one file on your computer. Nothing is sent anywhere: you send the file yourself.
If LensDesk won’t start, the button isn’t there; see It didn’t start.
Making the file
- Under What happened?, say what you did, what you expected, and what happened instead.
- Tick Hide private messages if you’d rather leave out tells and channel messages. Tick Only this character to include just the character in the window you’re using.
- Click Create report file.
While you choose, the dialog counts the files the report will hold, and says how many lines of tells and channel messages are in it.
When it’s done, the dialog shows where it saved the file, with Show in Finder (Show in Explorer on Windows; Linux has neither), Copy path and Copy summary. The summary, in Summary to paste with the file, gives the version, the file’s name, the characters, whether private messages are hidden, and what you wrote.
The file goes in the data folder’s diagnostics folder
(Your data and backups), named like
LensDesk-diagnostics-20261016T142500Z-pellam.zip, with the time in UTC.
What it holds
- the recent game text from your windows, and LensDesk’s session logs, tells and channel messages included unless you hide them
- your triggers, aliases and variables
- your window layout and settings
- LensDesk’s logs from the last seven days
- each character’s saved settings
- your note, and a list of what’s in the file
Saved passwords become [redacted] and email addresses [email hidden]
everywhere in the file, and hidden tells become [private message hidden].
The file never includes credentials.json, your note editor drafts or your
command history. Automation is copied as you wrote it, though: a password
typed into a trigger, alias or variable stays in the file.
The file holds at most 30 MB before it’s zipped; past that, the oldest logs are left out first.
Where to send it
Send the file, with the summary, to Tarm on the Lensmoor Discord.
It didn't start #
What to collect when LensDesk's window never appears or stays blank, and where to send it.
The window may never appear, or it may sit blank and then say the server didn’t become ready. LensDesk runs a small local server behind its window, and that’s the part that failed, so Report a problem… isn’t there to use. Collect two things instead.
The log
It’s the newest lensdesk_<date>_<time>_<number>.log in the logs folder; each
window writes its own.
- macOS and Linux:
~/.lensdesk/logs/ - Windows:
%APPDATA%\LensDesk\logs\. Paste that path straight into the File Explorer address bar.
The server’s output
Running the server by hand prints the real error instead of hiding it behind a timeout.
On macOS, in Terminal:
/Applications/LensDesk.app/Contents/MacOS/lensdesk-server --port 8199
On Windows, in Command Prompt:
"%LOCALAPPDATA%\LensDesk\server\python.exe" -I -B -m lensdesk.web.server --port 8199
If Windows says that path doesn’t exist, find the real one: open the Start
menu, right-click LensDesk, choose Open file location, then
right-click the shortcut there and choose Properties. The folder is in the
Start in box; put it in the command in place of %LOCALAPPDATA%\LensDesk.
On Linux, with the .deb installed:
lensdesk-server --port 8199
With the AppImage, unpack it first. That makes a squashfs-root folder in the
current folder and changes nothing else:
./LensDesk_<version>_amd64.AppImage --appimage-extract
squashfs-root/usr/bin/lensdesk-server --port 8199
Whichever you ran, it should print Uvicorn running on http://127.0.0.1:8199
within about ten seconds. If it prints an error instead, send that error with
your OS version. Ctrl+C stops it.
On Linux you can also start the whole app from a terminal, as lensdesk or
./LensDesk_<version>_amd64.AppImage, and the server’s output appears there.
If the AppImage’s error mentions FUSE, see
Installing.
LensDesk uses ports 8100 to 8199 on your own computer. It skips any already in use and gives up only if all hundred are taken.
Sending what you collected
Send the log and the server’s output, with your OS version, to Tarm on the Lensmoor Discord. Once LensDesk starts again, Report a problem… makes a fuller file; tick Hide private messages there to leave out tells and channel messages.