Skip to content

Instantly share code, notes, and snippets.

@pygman
Last active October 4, 2016 11:05
Show Gist options
  • Save pygman/8cd9e05d0666fbce92f0aeb62d18edfa to your computer and use it in GitHub Desktop.
Save pygman/8cd9e05d0666fbce92f0aeb62d18edfa to your computer and use it in GitHub Desktop.
Debian系桌面Linux 键盘设置 Dvorak和CapsLock
! http://www.mit.edu/~jcb/Dvorak/dvorak-keyboard.txt
!
! ANSI Dvorak keyboard
!
! Author: Jeff Bigler (jcb@mit.edu)
! Last modified: 1996/08/27 13:45:30 by jcb@mit.edu
!
! This file should be given as an argument to xmodmap to
! switch from a qwerty to a Dvorak keyboard.
!
! If you want to be easily able to switch the keyboard
! back to its previous state, first run xmodmap -pke and
! redirect the output to a file. Then you can switch back
! by giving that file as an argument to xmodmap. For
! example, if you type:
!
! xmodmap -pke > /tmp/keyboard.default
!
! before switching the keyboard, you can then type:
!
! xmodmap /tmp/keyboard.default
!
! to reset the keyboard to its previous state.
!
! Note that if you pass this file again as an argument to
! xmodmap, you will apply these translations a second time
! and come out with gibberish!
!
keysym q = quoteright quotedbl
keysym w = comma less
keysym e = period greater
keysym r = p P
keysym t = y Y
keysym y = f F
keysym u = g G
keysym i = c C
keysym o = r R
keysym p = l L
keysym bracketleft = slash question
keysym bracketright = equal plus
keysym a = a A
keysym s = o O
keysym d = e E
keysym f = u U
keysym g = i I
keysym h = d D
keysym j = h H
keysym k = t T
keysym l = n N
keysym semicolon = s S
keysym quoteright = minus underscore
keysym z = semicolon colon
keysym x = q Q
keysym c = j J
keysym v = k K
keysym b = x X
keysym n = b B
keysym m = m M
keysym comma = w W
keysym period = v V
keysym slash = z Z
!
! The keysyms for the top row have been moved to the end
! of the file (and translations that would normally have
! no effect are still included) because of conflicts with
! some of the extended keysyms on HP workstations. If the
! keysyms for the 8 and 9 keys are not defined explicitly
! *after* the keysyms for bracketleft and bracketright,
! they end up getting bound to "slash question" and "equal
! plus", respectively.
!
keysym 1 = 1 exclam
keysym 2 = 2 at
keysym 3 = 3 numbersign
keysym 4 = 4 dollar
keysym 5 = 5 percent
keysym 6 = 6 asciicircum
keysym 7 = 7 ampersand
keysym 8 = 8 asterisk
keysym 9 = 9 parenleft
keysym 0 = 0 parenright
keysym minus = bracketleft braceleft
keysym equal = bracketright braceright
keycode 24 = quoteright quotedbl
keycode 25 = comma less
keycode 26 = period greater
keycode 27 = p P
keycode 28 = y Y
keycode 29 = f F
keycode 30 = g G
keycode 31 = c C
keycode 32 = r R
keycode 33 = l L
keycode 34 = slash question
keycode 35 = equal plus
keycode 38 = a A
keycode 39 = o O
keycode 40 = e E
keycode 41 = u U
keycode 42 = i I
keycode 43 = d D
keycode 44 = h H
keycode 45 = t T
keycode 46 = n N
keycode 47 = s S
keycode 48 = minus underscore
keycode 52 = semicolon colon
keycode 53 = q Q
keycode 54 = j J
keycode 55 = k K
keycode 56 = x X
keycode 57 = b B
keycode 58 = m M
keycode 59 = w W
keycode 60 = v V
keycode 61 = z Z
keycode 20 = bracketleft braceleft
keycode 21 = bracketright braceright
gsettings set com.deepin.dde.keybinding.mediakey capslock '[]'
gsettings set com.deepin.dde.keyboard layout-options "['ctrl:swapcaps']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment