# in ~/.bashrc aka $HOME/.bashrc aka /home/$USER/.bashrc, add something like (add `sudo` if needed?)
# to switch between keyboards use the first 4 keys on the 'home' row.
alias asdf="loadkeys dvorak" # to go from qwerty to the next keyboard layout, dvorak
alias aoeu="loadkeys qwerty" # to go from dvorak to the next keyboard layout, qwerty
# You can do this to cycle between several keyboard layouts, so long as the first for keys are different
# or you could try one of these commands:
alias asdf="loadkeys /usr/lib/kbd/keytables/dvorak.map"
alias aoeu="loadkeys /usr/lib/kbd/keytables/us.map"
alias asdf="setxkbmap -layout us -variant dvorak"
alias aoeu="setxkbmap -layout us -variant basic"
I was about to answer when I realized that this thread is almost 9 years old...
sounds like a contradiction somewhere