Created
October 28, 2015 23:53
-
-
Save SnoringFrog/42b53edc2b16d59110a4 to your computer and use it in GitHub Desktop.
Colemak ↔ QWERTY (convert text typed in one layout to the other)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
while read line | |
do | |
echo "$line" | tr 'fpgjluy;rstdneiokFPGJLUY:RSTDNEIOK' 'ertyuiopsdfgjkl;nERTYUIOPSDFGJKL:N' | |
done < "${1:-/dev/stdin}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
while read line | |
do | |
echo "$line" | tr 'ertyuiopsdfgjkl;nERTYUIOPSDFGJKL:N' 'fpgjluy;rstdneiokFPGJLUY:RSTDNEIOK' | |
done < "${1:-/dev/stdin}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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. :)