VirtualBox

Opened 3 years ago

#20217 new defect

Xmodmap needs several executions on Windows 10 host

Reported by: anrxc Owned by:
Component: guest additions/x11/graphics Version: VirtualBox 6.1.16
Keywords: xmodmap, alt, meta Cc:
Guest type: Linux Host type: Windows

Description

This is my .Xmodmap in a GNU/Linux guest:

! Use Menu as a slash
keycode 135 = slash

! Swap Esc and Alt under VirtualBox guest
remove mod1 = Alt_L
keysym Escape = Alt_L
keysym Alt_L = Escape
add mod1 = Alt_L

This is an excerpt from my .xinitrc:

usermodmap="${HOME}/.Xmodmap"
[[ -r "${usermodmap}" ]] && xmodmap "${usermodmap}"

After startx my desired key bindings are not active. On average I have to execute the following command twice more in a terminal emulator for it to take effect: xmodmap ~/.Xmodmap

I created a menu item in the TWM window manager that executes: "xmodmap ~/.Xmodmap ; xmodmap ~/.Xmodmap ; xmodmap ~/.Xmodmap".

But even with this usable workaround it is certainly annoying, and I frequently forget to run it from the menu on boot.

Extra information,

Host: Windows 10 19042

virtualbox extension pack: 6.1.16r140961

Guest: Arch Linux

virtualbox-guest-utils: 6.1.16

xorg-server: 1.20.10

xf86-input-libinput: 0.30.0

libinput: 1.16.4

X.org configuration:

Section "InputClass"
    Identifier      "keyboard"
    MatchIsKeyboard "on"
    Option     "XkbLayout"   "hr,us"
    # XkbOptions list: /usr/share/X11/xkb/rules/base.lst
    Option     "XkbOptions"  "grp:shifts_toggle,terminate:ctrl_alt_bksp"
EndSection

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use