Skip to content

Commit

Permalink
Merge pull request #63 from Ultramarine-Linux/w/keyboard-cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingneko authored Aug 7, 2024
2 parents f23dad4 + b14e0e1 commit d0a4262
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const SIDEBAR: Sidebar = {
Usage: [
{ text: "Gaming on Ultramarine", link: "en/usage/gaming" },
{ text: "Localization", link: "en/usage/l10n" },
{ text: "Keyboard Configuration", link: "en/usage/keyboard-cfg" }
],

"Release Notes": [{ text: "Errata", link: "en/release/errata" }],
Expand Down
55 changes: 55 additions & 0 deletions src/content/docs/en/usage/keyboard-cfg.mdx
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

0 comments on commit d0a4262

Please sign in to comment.