Skip to content

Instantly share code, notes, and snippets.

@FliegendeWurst
Last active December 29, 2023 17:31
Show Gist options
  • Save FliegendeWurst/856bd34536028b5579bdb102f324325a to your computer and use it in GitHub Desktop.
Save FliegendeWurst/856bd34536028b5579bdb102f324325a to your computer and use it in GitHub Desktop.
dvorak-custom
partial alphanumeric_keys modifier_keys
xkb_symbols "dvorak-custom" {
name[Group1]="English (Dvorak, custom)";
key <BKSP> {[ BackSpace, BackSpace ]};
key <LFSH> {[ Shift_L ]};
key <RTSH> {[ Shift_R ]};
key <RTRN> {[ Return ]};
key <LCTL> {[ Control_L ]};
key <RCTL> {[ Control_R ]};
key <ESC> {[ Escape ]};
key <LALT> {[ Alt_L ]};
key <RALT> {[ Alt_R ]};
key <SPCE> {[ space ]};
//key <CAPS> {[ Control_L ]};
key <ALT> {[ Alt_L ]};
key <META> {[ Meta_L ]};
key <LWIN> {[ Super_L ]};
key <RWIN> {
type[Group1]="ONE_LEVEL",
symbols[Group1] = [ ISO_Level5_Shift ]
};
key <HYPR> {[ Hyper_L ]};
modifier_map Shift { <LFSH> };
modifier_map Shift { <RTSH> };
modifier_map Control { <LCTL> };
modifier_map Control { <RCTL> };
modifier_map Mod1 { <LALT> };
modifier_map Mod4 { <LWIN> };
key <PRSC> {[ Print ]};
key <TAB> {[ Tab ]};
key <FK01> {[ F1 ]};
key <FK02> {[ F2 ]};
key <FK03> {[ F3 ]};
key <FK04> {[ F4 ]};
key <FK05> {[ F5 ]};
key <FK06> {[ F6 ]};
key <FK07> {[ F7 ]};
key <FK08> {[ F8 ]};
key <FK09> {[ F9 ]};
key <FK10> {[ F10 ]};
key <FK11> {[ F11 ]};
key <FK12> {[ F12 ]};
key <NMLK> {[ Num_Lock ]};
key <SCLK> {[ Scroll_Lock ]};
key <KP7> {[ KP_Home, KP_7 ]};
key <KP8> {[ KP_Up, KP_8 ]};
key <KP9> {[ KP_Prior, KP_9 ]};
key <KPSU> {
type = "CTRL+ALT",
symbols[Group1] = [ KP_Subtract, KP_Subtract, KP_Subtract, KP_Subtract, XF86Prev_VMode ]
};
key <KP4> {[ KP_Left, KP_4 ]};
key <KP5> {[ KP_Begin, KP_5 ]};
key <KP6> {[ KP_Right, KP_6 ]};
key <KPAD> {
type = "CTRL+ALT",
symbols[Group1] = [ KP_Add, KP_Add, KP_Add, KP_Add, XF86Next_VMode ]
};
key <KP1> {[ KP_End, KP_1 ]};
key <KP2> {[ KP_Down, KP_2 ]};
key <KP3> {[ KP_Next, KP_3 ]};
key <KP0> {[ KP_Insert, KP_0 ]};
key <KPDL> {[ KP_Delete, KP_Decimal ]};
key <LNFD> {[ Linefeed ]};
key <HOME> {[ Home ]};
key <UP> {[ Up ]};
key <PGUP> {[ Prior ]};
key <LEFT> {[ Left ]};
key <RGHT> {[ Right ]};
key <END> {[ End ]};
key <DOWN> {[ Down ]};
key <PGDN> {[ Next ]};
key <INS> {[ Insert ]};
key <DELE> {[ Delete ]};
key <MUTE> {[ XF86AudioMute ]};
key <VOL-> {[ XF86AudioLowerVolume ]};
key <VOL+> {[ XF86AudioRaiseVolume ]};
key <POWR> {[ XF86PowerOff ]};
key <KPEQ> {[ KP_Equal ]};
key <I126> {[ plusminus ]};
key <PAUS> {[ Pause, Break ]};
key <I128> {[ XF86LaunchA ]};
key <I129> {[ KP_Decimal, KP_Decimal ]};
key <COPY> {[ XF86Copy ]};
key <OPEN> {[ XF86Open ]};
key <PAST> {[ XF86Paste ]};
key <FIND> {[ Find ]};
key <CUT> {[ XF86Cut ]};
key <HELP> {[ Help ]};
key <I147> {[ XF86MenuKB ]};
key <I148> {[ XF86Calculator ]};
key <I150> {[ XF86Sleep ]};
key <I151> {[ XF86WakeUp ]};
key <I152> {[ XF86Explorer ]};
key <I153> {[ XF86Send ]};
key <I155> {[ XF86Xfer ]};
key <I156> {[ XF86Launch1 ]};
key <I157> {[ XF86Launch2 ]};
key <I158> {[ XF86WWW ]};
key <I159> {[ XF86DOS ]};
key <I160> {[ XF86ScreenSaver ]};
key <I161> {[ XF86RotateWindows ]};
key <I162> {[ XF86TaskPane ]};
key <I163> {[ XF86Mail ]};
key <I164> {[ XF86Favorites ]};
key <I165> {[ XF86MyComputer ]};
key <I166> {[ XF86Back ]};
key <I167> {[ XF86Forward ]};
key <I169> {[ XF86Eject ]};
key <I170> {[ XF86Eject, XF86Eject ]};
key <I171> {[ XF86AudioNext ]};
key <I172> {[ XF86AudioPlay, XF86AudioPause ]};
key <I173> {[ XF86AudioPrev ]};
key <I174> {[ XF86AudioStop, XF86Eject ]};
key <I175> {[ XF86AudioRecord ]};
key <I176> {[ XF86AudioRewind ]};
key <I177> {[ XF86Phone ]};
key <I179> {[ XF86Tools ]};
key <I180> {[ XF86HomePage ]};
key <I181> {[ XF86Reload ]};
key <I182> {[ XF86Close ]};
key <I185> {[ XF86ScrollUp ]};
key <I186> {[ XF86ScrollDown ]};
key <I187> {[ parenleft ]};
key <I188> {[ parenright ]};
key <I189> {[ XF86New ]};
key <I190> {[ Redo ]};
key <FK13> {[ XF86Tools ]};
key <FK14> {[ XF86Launch5 ]};
key <FK15> {[ XF86Launch6 ]};
key <FK16> {[ XF86Launch7 ]};
key <FK17> {[ XF86Launch8 ]};
key <FK18> {[ XF86Launch9 ]};
key <FK20> {[ XF86AudioMicMute ]};
key <FK21> {[ XF86TouchpadToggle ]};
key <FK22> {[ XF86TouchpadOn ]};
key <FK23> {[ XF86TouchpadOff ]};
key <I208> {[ XF86AudioPlay ]};
key <I209> {[ XF86AudioPause ]};
key <I210> {[ XF86Launch3 ]};
key <I211> {[ XF86Launch4 ]};
key <I212> {[ XF86LaunchB ]};
key <I213> {[ XF86Suspend ]};
key <I214> {[ XF86Close ]};
key <I215> {[ XF86AudioPlay ]};
key <I216> {[ XF86AudioForward ]};
key <I218> {[ Print ]};
key <I220> {[ XF86WebCam ]};
key <I221> {[ XF86AudioPreset ]};
key <I223> {[ XF86Mail ]};
key <I224> {[ XF86Messenger ]};
key <I225> {[ XF86Search ]};
key <I226> {[ XF86Go ]};
key <I227> {[ XF86Finance ]};
key <I228> {[ XF86Game ]};
key <I229> {[ XF86Shop ]};
key <I231> {[ Cancel ]};
key <I232> {[ XF86MonBrightnessDown ]};
key <I233> {[ XF86MonBrightnessUp ]};
key <I234> {[ XF86AudioMedia ]};
key <I235> {[ XF86Display ]};
key <I236> {[ XF86KbdLightOnOff ]};
key <I237> {[ XF86KbdBrightnessDown ]};
key <I238> {[ XF86KbdBrightnessUp ]};
key <I239> {[ XF86Send ]};
key <I240> {[ XF86Reply ]};
key <I241> {[ XF86MailForward ]};
key <I242> {[ XF86Save ]};
key <I243> {[ XF86Documents ]};
key <I244> {[ XF86Battery ]};
key <I245> {[ XF86Bluetooth ]};
key <I246> {[ XF86WLAN ]};
key <I251> {[ NoSymbol ]};
key <I254> {[ XF86WWAN ]};
key <I255> {[ XF86RFKill ]};
key.type[Group1] = "EIGHT_LEVEL";
key <TLDE> {[ grave, asciitilde, U00B0, U00B0, grave, grave, U00B0, U00B0 ]};
key <AE01> {[ 1, exclam, U00B9, U2081, 1, U2260, 1, U2260 ]};
key <AE02> {[ 2, at, U00B2, U2082, U00BD, U2161, U2154, U2156 ]};
key <AE03> {[ 3, numbersign, U00B3, U2083, U00A7, U00A7, U00A7, U00A7 ]};
key <AE04> {[ 4, U0024, U2074, U2084, U00BC, U00BE ]};
key <AE05> {[ 5, percent, U2075, U2085 ]};
key <AE06> {[ 6, asciicircum, U2228, U2227 ]};
key <AE07> {[ 7, ampersand, U2077, U2087 ]};
key <AE08> {[ 8, asterisk, U221E, U221E ]};
key <AE09> {[ 9, parenleft, dead_grave ]};
key <AE10> {[ 0, parenright, U2070, U2080 ]};
key <AE11> {[ bracketleft, braceleft ]};
key <AE12> {[ bracketright, braceright, dead_acute, dead_grave ]};
key <AD01> {[ apostrophe, quotedbl, dead_acute, dead_diaeresis ]};
key <AD02> {[ comma, less, adiaeresis, dead_caron ]};
key <AD03> {[period, period, U00B7, U00B7 ]};
key <AD04> {[ p, P, U03C8, U03A8, U03C6, U03A6 ]};
key.type[Group1] = "FOUR_LEVEL";
key <AD05> {[ y, Y, udiaeresis ]};
key <AD06> {[ f, F ]};
key <AD07> {[ g, G, U03B3, U0393 ]};
key <AD08> {[ c, C, U1F12F, U00A9 ]};
key <AD09> {[r, R, U00AE, U211D ]};
key <AD10> {[l, L, U03BB, U039B ]};
key <AD11> {[ slash, question, U00F7 ]};
key.type[Group1] = "EIGHT_LEVEL";
key <AD12> {[equal, plus, U2248, U208A, U00B1, U2213, U12031, U12031 ]};
key <AC01> {[ a, A, U00E4, U00C4, U03B1, U03B1, U2200, U2200 ]};
key <AC02> {[ o, O, U00F6, U00D6, U1F197, U1F192, U2205, U03A9 ]};
key <AC03> {[ e, E, U03B5, U20AC, U2208, U2209, U2203, U2204 ]};
key.type[Group1] = "FOUR_LEVEL";
key <AC04> {[u, U, U00FC, U00DC ]};
key <AC05> {[i, I, U2208, U2208 ]};
key <AC06> {[d, D, U03B4, U0394 ]};
key <AC07> {[ h, H ]};
key.type[Group1] = "EIGHT_LEVEL";
key <AC08> {[ t, T, U2122, U0398, U03C4, U27C2 ]};
key.type[Group1] = "FOUR_LEVEL";
key <AC09> {[ n, N, U2115, U2115 ]};
key.type[Group1] = "EIGHT_LEVEL";
key <AC10> {[ s, S, U00DF, U1E9E, U03C3, U2211 ]};
key <AC11> {[ minus, underscore, U2192, U2191, U2194, U21AE, U21D2, U21F6 ]};
key.type[Group1] = "FOUR_LEVEL";
key <LSGT> {[ less, greater, U2264, U2265 ]};
key <AB01> {[ semicolon, colon, acircumflex ]};
key <AB02> {[q, Q, U211A, U211A ]};
key <AB03> {[ j, J, egrave, dead_doubleacute ]};
key <AB04> {[ k, K, ugrave ]};
key <AB05> {[ x, X, idiaeresis ]};
key <AB06> {[ b, B, U03B2, U03B2 ]};
key.type[Group1] = "EIGHT_LEVEL";
key <AB07> {[ m, M, U03BC, U03BC, U2286, U2287, U22C2, U22C3 ]};
key.type[Group1] = "FOUR_LEVEL";
key <AB08> {[ w, W ]};
key <AB09> {[ v, V ]};
key <AB10> {[ z, Z, U0305, U0332 ]};
key <BKSL> {[ backslash, bar ]};
include "compose(menu)"
include "capslock(ctrl_modifier)"
include "level3(ralt_switch)"
// include "level5(modifier_mapping)"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment