Skip to content

Instantly share code, notes, and snippets.

@greyson
Created September 29, 2015 15:48
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 greyson/58168f05c96a881c08ab to your computer and use it in GitHub Desktop.
Save greyson/58168f05c96a881c08ab to your computer and use it in GitHub Desktop.
Dvorak with control for capslock.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "dvorak-control";
src = ./blanksource;
buildInputs = [ kbd ];
installPhase = ''
mkdir -p "$out"
zcat "${kbd}/share/keymaps/i386/dvorak/dvorak.map.gz" | \
sed -e 's/Caps_Lock/Control/g' | \
gzip -c > $out/dvorak-ctrl.map.gz
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment