Sway: Difference between revisions
m fix symlink misspelled as simlink |
m Added keyboard layout setting for declarative configuration. Would have helped me out. |
||
| Line 113: | Line 113: | ||
=== Keyboard layout === | === Keyboard layout === | ||
Changing layout for all keyboards to German (de)<syntaxhighlight lang="console"> | Changing layout for all keyboards to German (de):<syntaxhighlight lang="console"> | ||
input * xkb_layout "de" | input * xkb_layout "de" | ||
</syntaxhighlight>The same thing accomplished in Home Manager:<syntaxhighlight lang="nix"> | |||
wayland.windowManager.sway.input."*".xkb_layout = "de"; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
=== High-DPI scaling === | === High-DPI scaling === | ||
Changing scale for all screens to factor 1.5<syntaxhighlight lang="console"> | Changing scale for all screens to factor 1.5:<syntaxhighlight lang="console"> | ||
output * scale 1.5 | output * scale 1.5 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 148: | Line 150: | ||
Using [[Home Manager]] try configuring a general mouse cursor size and theme | Using [[Home Manager]] try configuring a general mouse cursor size and theme | ||
<syntaxhighlight lang="nix> | <syntaxhighlight lang="nix">home-manager.users.myUser = { | ||
home-manager.users.myUser = { | |||
home.pointerCursor = { | home.pointerCursor = { | ||
| Line 162: | Line 162: | ||
}; | }; | ||
}; | };</syntaxhighlight> | ||
</syntaxhighlight> | |||
Replace <code>myUser</code> with your user running the graphical environment. | Replace <code>myUser</code> with your user running the graphical environment. | ||