You are not logged in.
Hi !
I'm making an Arch Linux VM with qemu/kvm with virt-manager running headless sway through waynvc.
I configured the ps2 input keyboard :
input '0:0:wlr_virtual_keyboard_v1' {
xkb_layout "fr"
xkb_model "pc105"
}
But my first issue was that AltGr is mapped to ISO_Level3_shift keycode.
I tried to add a virtio keyboard with virt-manager. It's listed with libinput (as root) but not when I try to access it with swaymsg IPC (as my user)...
Device: QEMU Virtio Keyboard
Kernel: /dev/input/event1
Group: 3
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0Device: AT Translated Set 2 keyboard
Kernel: /dev/input/event2
Group: 4
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0
~ >>> swaymsg -t get_inputs [0]
Input device: wlr_virtual_pointer_v1
Type: Mouse
Identifier: 0:0:wlr_virtual_pointer_v1
Product ID: 0
Vendor ID: 0Input device: wlr_virtual_keyboard_v1
Type: Keyboard
Identifier: 0:0:wlr_virtual_keyboard_v1
Product ID: 0
Vendor ID: 0
Active Keyboard Layout: French
Thanks for the help !
[EDIT] : I've found the solution for my AltGr key.
The issue was wayvn keyboard layout config which is needed (in addition to sway-input config).
And the ISO_Level3_Shift is correct.
Below my systemd/user services units :
/etc/systemd/user/sway_homed.service :
[Unit]
Description=Headless Sway service for %u[Service]
Type=simple
Environment=WLR_BACKENDS=headless
Environment=WLR_RENDERER=pixman
Environment=WLR_LIBINPUT_NO_DEVICES=1
Environment=XKB_DEFAULT_LAYOUT=fr
ExecStart=/usr/bin/sway
Slice=session.slice[Install]
WantedBy=default.target
/etc/systemd/user/wayvnc_homed.service :
[Unit]
Description=Remote desktop service (wayvnc) for %u
After=sway_homed.service
BindsTo=sway_homed.service[Service]
Type=simple
Environment=WAYLAND_DISPLAY=wayland-1
ExecStart=/usr/bin/wayvnc --keyboard=fr[Install]
WantedBy=sway_homed.service
Last edited by NeverTooLate (2024-10-22 12:18:28)
Offline