Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Kaufmann <rlndkfmn+xrdp@gmail.com>2020-06-14 03:59:20 +0300
committerRoland Kaufmann <rlndkfmn+xrdp@gmail.com>2020-08-26 18:55:25 +0300
commita9eb5a17d272817a45a75f5e7613f0d286d2a073 (patch)
tree9082b8de2203f18b50a137c152e83d7ce8e051d5 /genkeymap
parent76ac0600e479c115bf0d6aba9364c8c4a8423b33 (diff)
Detect and setup Programmer Dvorak keyboard layout
This patch will add the keyboard layout identifier for the Programmer Dvorak keyboard layout, so that if a Windows client has that layout active, it will be mapped to the corresponding xkeyboard-config layout in the X server. An XFreeRDP client knows about this layout too, and will correspondingly map it to the identifier given here, making the layout propagate correctly through X-to-X connections as well. To replicate the full Windows keyboard layout several options have to be set as well as the main layout. To avoid having these options spill over to other layouts that are dumped, the old settings are stored before the dump and then restored afterwards.
Diffstat (limited to 'genkeymap')
-rwxr-xr-xgenkeymap/dump-keymaps.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/genkeymap/dump-keymaps.sh b/genkeymap/dump-keymaps.sh
index 7b61f240..b95305c7 100755
--- a/genkeymap/dump-keymaps.sh
+++ b/genkeymap/dump-keymaps.sh
@@ -15,6 +15,12 @@ setxkbmap -model pc104 -layout us
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