Skip to content

Terminal Module

Sam edited this page Aug 27, 2024 · 3 revisions

The terminal module displays the name of your current terminal.

Using

Insert into the modules array.

Configuration

  • title -> (String) The module title.
  • format -> (Optional/String) The format, check below to see available placeholders.
  • title_color -> (Optional/String) Override the title color to be used.
  • title_bold -> (Optional/Bool) Make the title bold.
  • title_italic -> (Optional/Bool) Make the title italic.
  • separator -> (Optional/Char) Override the separator to be used.
format placeholders;
  • {name} -> The name of the terminal.
  • {path} -> The path the terminal binary is at, e.g /usr/bin/kitty
  • {version} -> The terminal version.
Default Configuration
[terminal]
title = "Terminal"
format = "{name} {version}"
chase_ssh_pts = false

Example

modules = [
    "terminal"
]

[terminal]
title = "Terminal"
format = "{name} ({version})"
chase_ssh_pts = false