README: Move configuration up
Browse files at this commit4740682904f7353f5969449f3f63afc6c787c7c1Parent: df9d7211 changed file +8 -8
- README.md +8 -8
README.mdmodified+8 -8
| @@ -146,6 +146,14 @@ For example, `niri msg --json outputs`. | ||
| 146 | 146 | For programmatic access, check the [niri-ipc sub-crate](./niri-ipc/) which defines the types. |
| 147 | 147 | The communication over the IPC socket happens in JSON. |
| 148 | 148 | |
| 149 | +## Configuration | |
| 150 | + | |
| 151 | +Niri will load configuration from `$XDG_CONFIG_HOME/.config/niri/config.kdl` or `~/.config/niri/config.kdl`. | |
| 152 | +If this fails, it will load [the default configuration file](resources/default-config.kdl). | |
| 153 | +Please use the default configuration file as the starting point for your custom configuration. | |
| 154 | + | |
| 155 | +Niri will live-reload most of the configuration settings, like key binds or gaps or output modes, as you change the config file. | |
| 156 | + | |
| 149 | 157 | ## Default Hotkeys |
| 150 | 158 | |
| 151 | 159 | When running on a TTY, the Mod key is <kbd>Super</kbd>. |
| @@ -195,14 +203,6 @@ The general system is: if a hotkey switches somewhere, then adding <kbd>Ctrl</kb | ||
| 195 | 203 | | <kbd>Ctrl</kbd><kbd>PrtSc</kbd> | Take a screenshot of the focused monitor to clipboard and to `~/Pictures/Screenshots/` | |
| 196 | 204 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>E</kbd> | Exit niri | |
| 197 | 205 | |
| 198 | -## Configuration | |
| 199 | - | |
| 200 | -Niri will load configuration from `$XDG_CONFIG_HOME/.config/niri/config.kdl` or `~/.config/niri/config.kdl`. | |
| 201 | -If this fails, it will load [the default configuration file](resources/default-config.kdl). | |
| 202 | -Please use the default configuration file as the starting point for your custom configuration. | |
| 203 | - | |
| 204 | -Niri will live-reload most of the configuration settings, like key binds or gaps or output modes, as you change the config file. | |
| 205 | - | |
| 206 | 206 | ## Contact |
| 207 | 207 | |
| 208 | 208 | We have a Matrix chat, feel free to join and ask a question: https://matrix.to/#/#niri:matrix.org |