nwg-panel 0.9.26
Added the KeyboardLayout module: a switcher for both sway and Hyprland.
First you need to define multiple keyboard layouts in the compositor config. If you use the panel as a part of nwg-shell, you do it in the nwg-shell-config utility.
sway "Keyboard" tab:
Hyprland "Input devices" tab:
Then open the panel config utility and select the "Keyboard layout" tab. On Hyprland you can choose either "All" or a certain keyboard device.
On sway it does not work on the per-device basis, even if man sway-input
seems to claim otherwise. So we apply selection to all devices of type:keyboard
.
Left mouse button on the executor area switches the keyboard layout to the next defined one:
Right mouse button opens the menu: