Skip to content

Instantly share code, notes, and snippets.

@kungfoo
Last active December 15, 2015 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kungfoo/5223665 to your computer and use it in GitHub Desktop.
Save kungfoo/5223665 to your computer and use it in GitHub Desktop.
Wicked layout if you type a lot of german, english and happen to be programming quite a lot. I also swap Caps Lock for Control on keyboards that have this key.
setxkbmap us_wicked -option ctrl:nocaps -option lv3:ralt_switch
exec awesome
<layout>
<configItem>
<name>us_wicked</name>
<shortDescription>en wicked</shortDescription>
<description>English (wicked)</description>
<languageList>
<iso639Id>eng</iso639Id>
</languageList>
</configItem>
</layout>
// I do not like my umlauts to be on keys shifted by one.
// Since I mostly type german and english, moving the z and y
// keys makes sense to me.
// Umlauts can be typed using alt-gr.
// goes here: /usr/share/X11/xkb/symbols
partial alphanumeric_keys
xkb_symbols "us_wicked" {
name[Group1]= "English (wicked)";
include "us"
// Alphanumeric section
key <AD06> { [ z, Z ] };
key <AD07> { [ u, U, udiaeresis, Udiaeresis ] };
key <AD09> { [ o, O, odiaeresis, Odiaeresis ] };
key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
key <AB01> { [ y, Y ] };
include "level3(ralt_switch)"
};
@kungfoo
Copy link
Author

kungfoo commented Jul 30, 2013

Files go here:

  • wicked_us: /usr/share/X11/xkb/symbols/us_wicked
  • .xinitrc: Home directory
  • evdex.xml: Edit /usr/share/X11/xkb/rules/evdev.xml, add layout to layoutList after the us layouts have been defined.

@guetux
Copy link

guetux commented Nov 29, 2013

After using this for quite a while now, I have to say: This shit is AWESOME! Thanks again.

By the way: I still owe you for the filco, remember?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment