Skip to content

Instantly share code, notes, and snippets.

@SnoringFrog
Created October 28, 2015 23:53
Show Gist options
  • Save SnoringFrog/42b53edc2b16d59110a4 to your computer and use it in GitHub Desktop.
Save SnoringFrog/42b53edc2b16d59110a4 to your computer and use it in GitHub Desktop.
Colemak ↔ QWERTY (convert text typed in one layout to the other)
#!/usr/bin/env bash
while read line
do
echo "$line" | tr 'fpgjluy;rstdneiokFPGJLUY:RSTDNEIOK' 'ertyuiopsdfgjkl;nERTYUIOPSDFGJKL:N'
done < "${1:-/dev/stdin}"
#!/usr/bin/env bash
while read line
do
echo "$line" | tr 'ertyuiopsdfgjkl;nERTYUIOPSDFGJKL:N' 'fpgjluy;rstdneiokFPGJLUY:RSTDNEIOK'
done < "${1:-/dev/stdin}"
@Tsangares
Copy link

I was on the bus, it was night, my phone was dead, and I wanted to write my thoughts about how much I wanted to steal something from the guy in front of me. So I pull out my computer and start typing gibberish (Colmak on querty) on my computer. The guy next to me looked over confused. :)

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