xrdp/genkeymap/dump-keymaps.sh

57 lines
1.7 KiB
Bash
Raw Normal View History

2009-10-09 11:13:11 +04:00
#!/bin/sh
2022-09-03 03:39:32 +03:00
if ! command -v setxkbmap >/dev/null
2009-10-09 11:13:11 +04:00
then
echo "error, setxkbmap not found"
exit 1
fi
# English - US 'en-us' 0x00000409
2009-10-09 11:13:11 +04:00
setxkbmap -model pc104 -layout us
./xrdp-genkeymap ../instfiles/km-00000409.ini
2009-10-09 11:13:11 +04:00
2017-10-31 15:58:23 +03:00
# English - US 'dvorak' 0x00010409
setxkbmap -model pc104 -layout dvorak
./xrdp-genkeymap ../instfiles/km-00010409.ini
# English - US 'dvp' 0x19360409
OLD_SETTINGS=$(setxkbmap -query -verbose 4 | sed "s/^\([a-z]\+\):\s*\(.*\)$/-\1 \2/;s/^-options/-option \"\" -option/;s/,/ -option /g" | xargs -d \\n)
setxkbmap -rules xfree86 -model pc105 -layout us -variant dvp -option "" -option compose:102 -option caps:shift -option numpad:sg -option numpad:shift3 -option keypad:hex -option keypad:atm -option kpdl:semi -option lv3:ralt_alt
./xrdp-genkeymap ../instfiles/km-19360409.ini
setxkbmap ${OLD_SETTINGS}
# English - UK 'en-GB' 0x00000809
setxkbmap -model pc105 -layout gb
./xrdp-genkeymap ../instfiles/km-00000809.ini
# German 'de' 0x00000407
2009-10-09 11:13:11 +04:00
setxkbmap -model pc104 -layout de
./xrdp-genkeymap ../instfiles/km-00000407.ini
2009-10-09 11:13:11 +04:00
# Italian 'it' 0x00000410
2009-10-09 11:13:11 +04:00
setxkbmap -model pc104 -layout it
./xrdp-genkeymap ../instfiles/km-00000410.ini
2009-10-09 11:13:11 +04:00
# Japanese 'jp' 0x00000411
setxkbmap -model pc105 -layout jp -variant OADG109A
./xrdp-genkeymap ../instfiles/km-00000411.ini
2014-12-01 10:32:18 +03:00
# Polish 'pl' 0x00000415
2014-10-24 14:16:00 +04:00
setxkbmap -model pc104 -layout pl
./xrdp-genkeymap ../instfiles/km-00000415.ini
2014-10-24 14:16:00 +04:00
# Russia 'ru' 0x00000419
2009-10-09 11:13:11 +04:00
setxkbmap -model pc104 -layout ru
./xrdp-genkeymap ../instfiles/km-00000419.ini
2009-10-09 11:13:11 +04:00
# Sweden 'se' 0x0000041d
2009-10-09 11:13:11 +04:00
setxkbmap -model pc104 -layout se
./xrdp-genkeymap ../instfiles/km-0000041d.ini
2009-10-09 11:13:11 +04:00
# Portuguese -PT 'pt-pt' 0x00000816
2013-03-19 02:06:10 +04:00
setxkbmap -model pc104 -layout pt
./xrdp-genkeymap ../instfiles/km-00000816.ini
2013-03-19 02:06:10 +04:00
2009-10-09 11:13:11 +04:00
# set back to en-us
setxkbmap -model pc104 -layout us