chore: update readme
This commit is contained in:
parent
ae8d344f84
commit
37b61fedc9
1 changed files with 48 additions and 8 deletions
56
README.md
56
README.md
|
|
@ -205,22 +205,40 @@ git pull
|
||||||
## Configuring
|
## Configuring
|
||||||
|
|
||||||
All configuration options should be put in `~/.config/caelestia/shell.json`. This file is _not_ created by
|
All configuration options should be put in `~/.config/caelestia/shell.json`. This file is _not_ created by
|
||||||
default, you must create it manually.
|
default, you must create it manually. Options that you omit from the config file will use their default
|
||||||
|
values.
|
||||||
|
|
||||||
|
### Per-monitor configuration
|
||||||
|
|
||||||
|
You can configure options per-monitor in `~/.config/caelestia/monitors/<screen-name>/shell.json`. Options
|
||||||
|
set in this file will **override** the respective options in the global config. Otherwise, the options will
|
||||||
|
use their values from the global config.
|
||||||
|
|
||||||
|
For example, to disable the bar on DP-1:
|
||||||
|
|
||||||
|
**`~/.config/caelestia/monitors/DP-1/shell.json`**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"bar": {
|
||||||
|
"persistent": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Example configuration
|
### Example configuration
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> The example configuration only includes recommended configuration options. For more advanced customisation
|
> The example configuration includes ALL configuration options in `shell.json`. You are
|
||||||
> such as modifying the size of individual items or changing constants in the code, there are some other
|
> **not** recommended to copy and paste this entire configuration into `shell.json`.
|
||||||
> options which can be found in the source files in the `config` directory.
|
> This is meant to serve as a reference of all the available options, and you should
|
||||||
|
> only add the ones you want to change to `shell.json`.
|
||||||
|
|
||||||
<details><summary>Example</summary>
|
<details><summary>Example</summary>
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"appearance": {
|
"appearance": {
|
||||||
"mediaGifSpeedAdjustment": 300,
|
|
||||||
"sessionGifSpeed": 0.7,
|
|
||||||
"anim": {
|
"anim": {
|
||||||
"durations": {
|
"durations": {
|
||||||
"scale": 1
|
"scale": 1
|
||||||
|
|
@ -254,6 +272,8 @@ default, you must create it manually.
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"logo": "caelestia",
|
"logo": "caelestia",
|
||||||
|
"mediaGifSpeedAdjustment": 300,
|
||||||
|
"sessionGifSpeed": 0.7,
|
||||||
"apps": {
|
"apps": {
|
||||||
"terminal": ["foot"],
|
"terminal": ["foot"],
|
||||||
"audio": ["pavucontrol"],
|
"audio": ["pavucontrol"],
|
||||||
|
|
@ -442,9 +462,13 @@ default, you must create it manually.
|
||||||
},
|
},
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
"showOnHover": true,
|
||||||
|
"showDashboard": true,
|
||||||
|
"showMedia": true,
|
||||||
|
"showPerformance": true,
|
||||||
|
"showWeather": true,
|
||||||
"dragThreshold": 50,
|
"dragThreshold": 50,
|
||||||
"mediaUpdateInterval": 500,
|
"mediaUpdateInterval": 500
|
||||||
"showOnHover": true
|
|
||||||
},
|
},
|
||||||
"launcher": {
|
"launcher": {
|
||||||
"actionPrefix": ">",
|
"actionPrefix": ">",
|
||||||
|
|
@ -704,6 +728,22 @@ default, you must create it manually.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
### Advanced configuration
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
> Do NOT change any of these options if you do not know what you are doing. These options control the
|
||||||
|
> tokens used internally within the shell, and can cause visual issues if changed. The existence of
|
||||||
|
> the options are also not guaranteed across versions, and may change or be removed without notice.
|
||||||
|
|
||||||
|
A separate `~/.config/caelestia/shell-tokens.json` file allows editing the internal tokens without
|
||||||
|
touching the source code of the shell. These tokens affect, for example, individual rounding,
|
||||||
|
spacing, padding, font size, animation duration and easing curves tokens, and the sizes of certain
|
||||||
|
components. The appearance scale values in `shell.json` are multiplied against these base
|
||||||
|
token values to produce the final computed values.
|
||||||
|
|
||||||
|
Per-monitor token overrides are also available at
|
||||||
|
`~/.config/caelestia/monitors/<screen-name>/shell-tokens.json`.
|
||||||
|
|
||||||
### Home Manager Module
|
### Home Manager Module
|
||||||
|
|
||||||
For NixOS users, a home manager module is also available.
|
For NixOS users, a home manager module is also available.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue