Как сделать переключение раскладки на Sway?
Поскольку это ноутбук, то на встроенной клавиатуре переключение работает, а на внешней нет.
input "1:1:AT_Translated_Set_2_keyboard" {
xkb_layout us,ru
xkb_options grp:alt_shift_toggle
}
Так работает на встроенной, но я не могу найти идентификатор внешней.
λ ~/ swaymsg -t get_inputs
Input device: ETPS/2 Elantech Touchpad
Type: Touchpad
Identifier: 2:14:ETPS/2_Elantech_Touchpad
Product ID: 14
Vendor ID: 2
Libinput Send Events: enabled
Input device: AT Translated Set 2 keyboard
Type: Keyboard
Identifier: 1:1:AT_Translated_Set_2_keyboard
Product ID: 1
Vendor ID: 1
Active Keyboard Layout: Russian
Libinput Send Events: enabled
Input device: Asus Laptop extra buttons
Type: Keyboard
Identifier: 0:0:Asus_Laptop_extra_buttons
Product ID: 0
Vendor ID: 0
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: USB2.0 0.3M UVC WebCam: USB2.0
Type: Keyboard
Identifier: 1266:45541:USB2.0_0.3M_UVC_WebCam:_USB2.0
Product ID: 45541
Vendor ID: 1266
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: PixArt USB Optical Mouse
Type: Mouse
Identifier: 2362:9488:PixArt_USB_Optical_Mouse
Product ID: 9488
Vendor ID: 2362
Libinput Send Events: enabled
Input device: Barcode Reader Consumer Control
Type: Mouse
Identifier: 5050:24:Barcode_Reader__Consumer_Control
Product ID: 24
Vendor ID: 5050
Libinput Send Events: enabled
Input device: Barcode Reader Consumer Control
Type: Keyboard
Identifier: 5050:24:Barcode_Reader__Consumer_Control
Product ID: 24
Vendor ID: 5050
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: Barcode Reader System Control
Type: Keyboard
Identifier: 5050:24:Barcode_Reader__System_Control
Product ID: 24
Vendor ID: 5050
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: Barcode Reader Mouse
Type: Mouse
Identifier: 5050:24:Barcode_Reader__Mouse
Product ID: 24
Vendor ID: 5050
Libinput Send Events: enabled
Input device: Barcode Reader
Type: Keyboard
Identifier: 5050:24:Barcode_Reader
Product ID: 24
Vendor ID: 5050
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: Sleep Button
Type: Keyboard
Identifier: 0:3:Sleep_Button
Product ID: 3
Vendor ID: 0
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: Lid Switch
Type: Switch
Identifier: 0:5:Lid_Switch
Product ID: 5
Vendor ID: 0
Libinput Send Events: enabled
Input device: Power Button
Type: Keyboard
Identifier: 0:1:Power_Button
Product ID: 1
Vendor ID: 0
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: Video Bus
Type: Keyboard
Identifier: 0:6:Video_Bus
Product ID: 6
Vendor ID: 0
Active Keyboard Layout: English (US)
Libinput Send Events: enabled
Input device: Power Button
Type: Keyboard
Identifier: 0:1:Power_Button
Product ID: 1
Vendor ID: 0
Active Keyboard Layout: English (US)
Libinput Send Events: enabled