Skip to content

CLI ​

Every command takes --help. Commands that act on the shell need it running. A MONITOR or NAME argument is a connector name such as DP-1.

panel ​

CommandDoes
panel start / stop / restart / statusManage the shell process (start runs lys-shell shell in the background)
panel settingsOpen lys-settings
panel inspectOpen the widget inspector (see Custom styles)
panel hide / show / toggle [MONITOR]Bar visibility; all monitors when omitted
panel reveal [MONITOR]Show an auto-hiding bar for a few seconds
panel dashboard [MONITOR]Toggle the dashboard; focused monitor when omitted
panel focus [MONITOR]Move the keyboard into the bar: arrows walk modules, Enter or Space opens one, Esc leaves

config ​

CommandDoes
config get PATHPrint a value (bar.scale)
config set PATH VALUEWrite an override to runtime.yaml; VALUE is YAML
config reset PATHRemove the override
config schema [--stdout]Write schema.json to the config directory, or print it
config default [--stdout]Write config.yaml.example, or print it
config docs [--out DIR] [--only MODULE]Generate this manual's config reference pages (default docs/shell/config, run from the repository root)

See Editing config.

audio ​

CommandDoes
audio output-volume [LEVEL] / input-volume [LEVEL]Print, or set: 50 absolute, +5 / -10 relative
audio output-mute / input-muteToggle mute
audio sinks / sources / statusList outputs, inputs, current state

brightness ​

sh
lys-shell brightness +10
lys-shell brightness 50 --output DP-1
lys-shell brightness auto

N sets, +N raises, -N lowers, in percent, on the focused output or --output/-o. Never below modules.brightness.min-brightness. Laptop panels change through logind (no root needed); external monitors over DDC/CI when modules.brightness.enable-external is on. The shell applies the change, so the OSD and the bar module follow.

auto hands the backlight back to lys-power's automatic brightness after a manual change paused it. It fails when automatic brightness is not running.

media ​

CommandDoes
media listList players
media play-pause / stop / next / previous [PLAYER]Control a player
media shuffle [on|off|toggle] [PLAYER]Shuffle; toggles when omitted
media loop none|track|playlist [PLAYER]Loop mode
media active [PLAYER]Print or set the active player
media info [PLAYER]Show player details

PLAYER is a number or part of a name; the active player when omitted. A player that reports CanControl false refuses every control. next and previous show the now-playing OSD (see osd.media).

idle ​

CommandDoes
idle on [MINUTES] [-i]Inhibit idle for MINUTES, the default duration, or indefinitely with --indefinite
idle offStop inhibiting
idle toggle [-i]Toggle
idle duration VALUEAdjust the timer's upper limit: N, +N, -N
idle remaining VALUEAdjust the running timer: N, +N, -N
idle statusPrint the state

power, notify, systray ​

CommandDoes
power status / list / cycleCurrent profile, available profiles, next profile
power set PROFILEpower-saver, balanced or performance
notify list / statusList notifications, print state
notify dismiss ID / dismiss-allDismiss
notify dnd [--until TIME]Toggle Do Not Disturb; --until turns it on until HH:MM or for 30m, 1h
systray list / statusList tray items, print state
systray activate IDActivate a tray item

wallpaper ​

CommandDoes
wallpaper set PATH [--fit MODE] [--monitor NAME]Set an image; MODE is fill, fit, center, tile or stretch; all monitors when omitted
wallpaper cycle DIR [-i SECONDS] [-m MODE]Cycle a folder every SECONDS (default 300), sequential (default) or shuffle
wallpaper next / previous / stopControl cycling
wallpaper info [--monitor NAME]Print the current state
wallpaper theming-monitor NAMEMonitor whose wallpaper drives color extraction; "" for the default

lys-shell launcher -show wallpaper opens the wallpaper picker. Wallpapers resampled for an output are cached in $XDG_CACHE_HOME/lys-shell/wallpaper (up to 256 MiB). An image that fails to decode, or takes over a second, shows the built-in wallpaper meanwhile and is logged.

recorder ​

CommandDoes
recorder start / stop / toggleRecord
recorder pause / resumePause a recording
recorder statusPrint the state
recorder replay startArm the instant replay
recorder replay saveSave the buffered seconds; prints the file
recorder replay stopDisarm it and free its memory

The instant replay keeps the last modules.recorder.replay.seconds (default 30) of an output encoded in memory, with keyframes every 2 s. replay save writes from the oldest keyframe to now as lys-shell-replay-<time>.<format> in the output directory, without interrupting the capture. Memory use is the bitrate times the seconds plus one keyframe interval; the recorder dropdown shows it. A normal recording can run at the same time on its own encoder. See modules.recorder.

screenshot ​

CommandDoes
screenshot regionDrag a region or click a window, adjust, Enter
screenshot output [NAME]A whole output; the focused one when omitted
screenshot windowThe active window
screenshot textCopy the text in a dragged region
screenshot qrDecode the QR code in a dragged region

text and qr save no image and print what they read. text reads Latin script drawn in the UI's fonts (Geist, Geist Mono) or the installed sans-serif, serif and monospace ones, copies the text and shows its first line in a toast; Esc stops it. A blank region, or one with nothing that reads as text, copies nothing. qr offers Copy, and Open for a link; with no code found nothing is copied.

colorpicker ​

sh
lys-shell colorpicker                        # print and copy, in colorpicker.format
lys-shell colorpicker --format oklch         # hex, rgb, hsl, hsv, oklch or cmyk
lys-shell colorpicker --no-copy --no-loupe   # print only; crosshair instead of the magnifier

Tab cycles the readout format; the format shown at the click is printed and copied, and the next pick starts in it. The recent swatches at the bottom can be picked again. Esc prints nothing and exits with status 1.

icons ​

See Custom icons.

widget, toast ​

sh
lys-shell widget update gpu '{"text":"72°C","alt":"hot"}'
lys-shell toast "Volume" --icon audio-volume-high-symbolic --percentage 65

widget update ID OUTPUT pushes output to a custom module. toast [LABEL] shows an on-screen toast styled and placed like the OSD:

FlagEffect
--icon NAMEIcon beside the text
--percentage NProgress bar, 0-100
--duration MSDisplay time; the OSD's when unset
--preset IDStart from an osd.presets entry, which may supply the label
--class NAMEExtra CSS class

launcher ​

lys-shell launcher opens the search panel; with rofi flags it is a rofi-compatible launcher and dmenu. See Launcher.

lock, logout ​

CommandDoes
lockAsk the shell to start the lock screen. lys-lock does the same as a single executable, for configs that take one word
logoutEnd the session through lys-wm when running, otherwise logind

portal ​

CommandDoes
portal / portal runRun the xdg-desktop-portal backend (what the D-Bus and systemd units start)
portal show DIALOGPreview a portal dialog: file-chooser, screenshot, color, print, screen-cast, access, account, app-chooser, dynamic-launcher, authenticate, wallpaper
portal permissions listList what each app was granted
portal permissions revoke APP TABLE [ENTRY]Revoke a table of grants, or one entry

Permission tables: background, devices, gamemode, global-shortcuts, inhibit, input-capture, location, notifications, realtime, remote-desktop, screencast, screenshot, usb, wallpaper.

portal share-picker and vpn sso-callback are started by xdg-desktop-portal and by the browser after a VPN sign-in, not by hand.

shell, completions ​

CommandDoes
shellRun the shell in the foreground
completions SHELLPrint completions for bash, elvish, fish, powershell or zsh

IPC ​

The CLI talks to the running shell over these interfaces, which scripts can use directly.

D-Bus (session bus):

NameObjectInterface
dev.stubbe.lys.shell/dev/stubbe/lys/shellorg.gtk.Actions with the actions quit and inspector
dev.stubbe.lys.Shell1/dev/stubbe/lys/Shelldev.stubbe.lys.Shell1: BarHide, BarShow, BarToggle, BarReveal, BarFocus, DashboardToggle (each takes a monitor name, "" for all or focused), Lock, VpnSsoCallback; properties Connectors, BarHidden, and Started, true once every bar has shown its first frame, the dropdowns they open are built and the tray has read the items already on the bus

Widget socket: $XDG_RUNTIME_DIR/lys-shell/widget.sock, newline-delimited JSON-RPC 2.0. Methods:

MethodParams
widget.update{"id": "<module id>", "output": "<text or JSON>"}
toast.show{"label", "icon", "percentage", "duration_ms", "preset", "class"}, all optional
sh
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"widget.update","params":{"id":"gpu","output":"72°C"}}' \
  | socat - UNIX-CONNECT:"$XDG_RUNTIME_DIR/lys-shell/widget.sock"

Released under the MIT License.