-
Notifications
You must be signed in to change notification settings - Fork 6
OS Module
Sam edited this page Aug 7, 2024
·
2 revisions
The os
module displays your Linux distribution's name and your Kernel version.
To keep in-line with other fetch scripts, you can choose to output your Kernel to a different line as a part of this module.
Insert into the modules
array.
-
title
-> (String) The module title. -
format
-> (String) The format used to display the module. Check below to see available placeholders. -
newline_kernel
-> (Bool) Whether to use a new line for the kernel output. -
kernel_title
-> (String) The title of the kernel output if it's on a new line. -
kernel_format
-> (String) The format of the kernel output line, if it's on a new line. Contains a singular{kernel}
placeholder. -
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.
-
{distro}
-> The name of your distribution. -
{kernel}
-> The kernel version running on your system.
[os]
title = "Operating System"
format = "{distro} ({kernel})"
newline_kernel = false
kernel_title = "Kernel"
kernel_format = "Linux {kernel}"
modules = [
"os"
]
[os]
title = "Distro"
format = "{distro}"
newline_kernel = true
kernel_title = "Kernel"
kernel_format = "Linux {kernel}"