-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from Ultramarine-Linux/w/keyboard-cfg
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Keyboard Configuration | ||
description: How you may configure your keyboard. | ||
--- | ||
|
||
import Alert from "../../../../components/Docs/Alert.astro"; | ||
|
||
## Layouts | ||
|
||
The default keyboard layout is English (US). You may change the keyboard layout in the respective desktop settings. | ||
|
||
If you would like to type in another language, we have a dedicated [localization guide](/en/usage/l10n#inputting-in-another-language). | ||
|
||
## Key remapping | ||
|
||
`keyd` is a key remapping daemon that remaps keys using kernel level input primitives, making it a desirable solution across different desktop environments and window managers. | ||
|
||
### Steps for simple configuration | ||
|
||
1. Make sure you are a system administrator (i.e. you can run sudo) | ||
2. Create a file `/etc/keyd/default.conf` and paste the example configuration below into it. Save the file. | ||
3. Install `keyd` (from [Terra]): `sudo dnf install keyd` | ||
|
||
Every time you have changed your configurations, you will need to reload them using `sudo keyd reload` | ||
|
||
### Example configuration | ||
|
||
```ini | ||
[ids] | ||
|
||
* | ||
|
||
[main] | ||
|
||
# Maps capslock to escape when pressed and control when held. | ||
capslock = overload(control, esc) | ||
|
||
# Remaps the escape key to capslock | ||
esc = capslock | ||
``` | ||
|
||
Lines starting with a `#` are comments, they will be ignored by `keyd`. | ||
|
||
For more information, read the [Quickstart](https://github.com/rvaiya/keyd?tab=readme-ov-file#quickstart) section from upstream. | ||
|
||
### Advanced configurations | ||
|
||
`keyd` supports more advanced configurations, including | ||
- mapping macros | ||
- key timeouts | ||
- custom layers / modifier keys (keys that can change behaviours of other keys when held, like shift, ctrl, alt, meta/winkey) | ||
|
||
Read the full documentation: https://github.com/rvaiya/keyd/blob/master/docs/keyd.scdoc | ||
|
||
[Terra]: https://terra.fyralabs.com |