Skip to content

lsnet 0.12.0

Choose a tag to compare

@sanford sanford released this 09 Oct 02:58
· 13 commits to main since this release

Themes

The browser has always drawn in your terminal's own colors, and still does to start. Press t for the others: Omarchy's themes (Tokyo Night, Catppuccin, Gruvbox, Nord, Rosé Pine and more) and lshn's hn, amber and green, each with a strip of its colors. Moving through the list shows each one on the whole screen; Enter keeps it and Esc goes back.

  • The theme you keep is saved in ~/.lsnet/config.toml, and --theme NAME picks one for a single run.
  • Themes of your own go in ~/.lsnet/themes/, as NAME.toml or NAME/colors.toml in Omarchy's colors.toml format.
  • On Omarchy, lsnet follows the desktop's theme instead, as it changes.

The mouse

Click a tab to switch to it, a row to select it, or a line of the details to go into them with that line selected. Click what's already selected to copy it: a row's IP address (or a service's address and port), or a line's value. The wheel moves through the list or the details, and every hint in the footer clicks as its key, so w open opens the web page.

--no-mouse, or mouse = false in the config file, leaves the mouse to the terminal. Most terminals still select text while you hold Shift (Option in iTerm2).

Which pane has the keyboard

The pane with the keyboard is outlined in the theme's accent (cyan in the terminal's own colors), and the other one dimmed, whichever side it's on. Only the details used to change.

Upgrading from 0.11.0

  • The mouse is on: clicks and the wheel go to lsnet. To select text with the terminal, hold Shift (Option in iTerm2), or run with --no-mouse.
  • t picks a theme, and lsnet now reads ~/.lsnet/config.toml if there is one. Printed tables and --json haven't changed.

Download

  • macOS (Apple silicon): brew install sanford/tap/lsnet, or download lsnet-macos-arm64.tar.gz below (signed and notarized)
  • Windows: scoop install sanford/lsnet, or download lsnet-windows-x64.zip below
  • Anywhere with Rust: cargo install lsnet

Full changes: v0.11.0...v0.12.0