Skip to content

nwg-panel 0.9.26

Compare
Choose a tag to compare
@nwg-piotr nwg-piotr released this 20 Mar 00:02
· 256 commits to master since this release
6a2e3d4

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:

2024-03-20-003633_sway_screenshot

Hyprland "Input devices" tab:

2024-03-20-003510_hypr_screenshot

Then open the panel config utility and select the "Keyboard layout" tab. On Hyprland you can choose either "All" or a certain keyboard device.

2024-03-20-003837_hypr_screenshot

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:

2024-03-20-005553_hypr_screenshot

Right mouse button opens the menu:

2024-03-20-005354_hypr_screenshot