Skip to content

Custom icons ​

Icon fields such as icon-name: tb-home-symbolic resolve against lys-shell's icon theme in ~/.local/share/lys-shell/icons/ ($XDG_DATA_HOME), then lys-shell/icons under each $XDG_DATA_DIRS entry and /usr/share/lys-shell/icons. Icons installed while the shell runs resolve without a restart.

The bundled icons are Lucide (ld-), Simple Icons (si-) and lys's own (lys-), which no source publishes. Everything else is installed with lys-shell icons.

Sources ​

lys-shell icons sources lists them. Slugs are the names on the upstream site.

SourcePrefixContentsBrowse
tablertb-Outline UI iconstabler.io/icons
tabler-filledtbf-Filled UI iconstabler.io/icons
simple-iconssi-Brand logossimpleicons.org
materialmd-Material Symbols (outlined)fonts.google.com/icons
lucideld-UI iconslucide.dev/icons

A brand lys bundles that Simple Icons' latest release dropped installs from the last release that had it.

An installed icon is named <prefix>-<slug>-symbolic:

sh
lys-shell icons install tabler home settings bell   # tb-home-symbolic, ...
lys-shell icons install simple-icons firefox        # si-firefox-symbolic

Local SVGs ​

sh
lys-shell icons import ~/Downloads/my-logo.svg my-logo   # cm-my-logo-symbolic
lys-shell icons import ~/exported-icons/                  # every SVG in the folder

A single file needs a name and gets the cm- prefix. In a folder, files already named with a known prefix (tb-, tbf-, si-, md-, ld-, lys-, cm-) keep their name; the rest get cm-. Imported SVGs are converted to symbolic icons so they take the theme's colors.

Managing ​

CommandDoes
icons list [--source tb] [--interactive]List installed icons, by prefix; --interactive searches them in the terminal and copies the picked name
icons remove tb-home-symbolic ...Remove icons by full name
icons sync [--dry-run]Install every icon the config names that is missing: one lys bundles from the bundle, offline (the animated module icons exist only there), any other from its CDN
icons export <dir>Copy all installed icons to a folder
icons openOpen the icons folder in the file manager
icons setupInstall the bundled icons (needed for source builds)

Using icons ​

Give the full name, prefix and suffix included:

yaml
modules:
  clock:
    icon-name: ld-clock-symbolic

At startup and on every reload, the shell logs each icon the config names that is not installed, with the command that gets it: icons sync for a bundled or CDN icon, icons import for a cm- icon.

Released under the MIT License.