I have a special case where I need to have a porteus kiosk on a laptop where the keyboard needs to be in "fr" and 2 external usb hid devices (i.e. barcode scanner) in "us".
After some troubles, I have come to the solution of adding a file to the 003-settings.xzm in /etc/X11/xorg.con where I put
Code: Select all
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "fr"
Option "XkbModel" "pc104"
EndSection
Section "InputClass"
Identifier "NEWTOLOGIC NEWTOLOGIC"
MatchUSBID "060e:16c1"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbVariant" ","
Option "XkbOptions" ""
EndSection
Section "InputClass"
Identifier "Sycreader RFID Technology Co., Ltd SYC ID&IC USB Reader"
MatchUSBID "08ff:0009"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbVariant" ","
Option "XkbOptions" ""
EndSection
However I need as well to modify etc/xdg/openbox/autostart, where I comment out a line:
Code: Select all
#setxkbmap -layout us,lay2 -variant ,var2 2>/dev/null
Of course, in this way there is some hardcoding, I do not know if there is a better way to handle this circumstance?
Regards