| Post Reply | RetroFed Forum Forum Index » swaywm |
| Author | Message | ||
|---|---|---|---|
ExtremeDullard
lemmy.sdf.org
ExtremeDullard@lemmy.sdf.orgJoined: 2023-07-23 |
To configure several keyboard input layouts, it's quite simple - especially if you come from i3: no need for ibus or fcitx (both bring their own problems in Sway/Wayland). All you have to do is edit your keyboard input preferences right in your Sway config file. For example:
This sets up 4 keyboard layout (US, French, Finnish and Spanish) and There's a plethora of XKB layouts and options. You can see them all by doing Then if you use Waybar, you can set it up so that it displays the layout currently in use with the
This shows the current layout as the corresponding country flag and configures left- and right-click to cycle through the layouts when clicking on the flag. Finally, if you like to type emojis and you don't want to remember the unicode numbers (which you can enter in hexadecimal with
Then add a key binding in your Sway config file to call the emoji picker. I personally use
Final twist: if you use several input layouts and you display the current layout in Waybar, you'll notice that That's because there's a bug in the Waybar Sway language module: it doesn't mess up the keyboard input, it just makes the icon disappear until you change the layout, and then it comes back. So here's a workaroud, since nobody seems to be in a hurry to fix this bug 😃:
What this script does is call the real
After that, the language icon should stay put when you enter emojis. |
||
| 1 Original | |||
| Post Reply |
Back to top |