gitlabEdit

wrenchKernel Settings

How settings works.

The kernel is extensively configurable. It allows you to customize your kernel to fit your needs across all areas, ranging from general kernel settings to networking to screensavers. It's an exciting feature!


How it works?

The kernel configuration files are stored in the below software paths (Paths.AppDataPath under the KS.Files namespace):

  • Windows: %localappdata%\KS\

  • Linux: ~/.config/ks/

When the kernel starts up, different configuration files are read for different purposes.

chevron-rightNitrocid configuration file structurehashtag

The below settings paths describe the purpose and the type of each (with all the addons).


Settings

The kernel provides an easy-to-use tool to seamlessly configure the kernel settings. It can be easily invoked using the settings command. Running this command alone provides you with the normal kernel settings.

circle-check
chevron-rightAvailable modes via command switcheshashtag

The following switches will change the mode:

Switch

-saver

Lets you configure the screensavers.

-addonsaver

Lets you configure the screensavers from the Extra Screensavers addon.

-splash

Lets you configure the splashes.

-addonsplash

Lets you configure the splashes from the Extra Splashes addon.

-driver

Lets you configure the kernel drivers.

-widgets

Lets you configure the kernel widgets for the lock screen.

-type=configType

Lets you configure a custom section of the kernel settings, including your mod-defined ones.

chevron-rightSection selectionhashtag

Selecting a section leads to the settings application listing all the available configuration options, which you can then set their individual options. It even allows you to save the settings if you like the current configuration, load the user settings, and find a settings entry for easier access.

circle-info

You can change the kernel settings section by either pressing F9 in the modern settings interface or by highlighting the Select configuration option in the classic settings interface.

chevron-rightSettings on your shellhashtag

This feature is useful for your UESH scripts and for your quick shortcut to change your settings.

You can change the kernel settings and list them using the following available commands:

Command
Description

lsconfigs

This command allows you to list all configurations and their entries.

lsconfigvalues

This command allows you to list all configuration keys and their values.

getconfigvalue

This command allows you to get a config value by the variable name.

setconfigvalue

This command allows you to set a config value by the variable name to the specified value.

Last updated