Skip to content

Host Module

Sam edited this page Aug 7, 2024 · 3 revisions

The host module displays whatever your computer's "host" is, typically either your laptop's model name, or motherboard's name.

Using

Insert into the modules array.

Configuration

  • title -> (String) The module title.
  • format -> (String) The format used to display the module. 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;
  • {host} -> The name of the host, either your motherboard name or laptop model.
  • {chassis} -> The type of chassis, e.g Desktop or Laptop.
Default Configuration
[host]
title = "Host"
format = "{host} ({chassis})"

Example

modules = [
    "host"
]

[host]
title = "Host"
format = "Running on {host}"