Intro:
Lifehacker recently
posted a AutoHotkey script for windows that allows text navigation using letters instead of the arrow keys. In response to
@wersdaluv's post, I wrote a very simple script that allows users to navigate text using the standard vim keys (hjkl) when the caps-lock key is toggled. Feel free and add to my very basic script
Steps:
- Download my script (via copy and paste) from here.
- Save the script somewhere where you will not delete it and mark it as executable (
chmod u+x /path/to/script.sh)
- Add the script to the startup programs with the argument
init (i.e. /path/to/script.sh init). If you don't know how to add startup programs in your Desktop Environment, Google it.
- Assign F13 (the now remapped capslock key), as a hotkey in your window manager. Set the command to
'/path/to/script.sh toggle'. Again, if you don't know how to add a hotkey, Google it.
- Now either log out and then in or run '
/path/to/script.sh init' in order to remap the capslock key.
- Pressing the capslock key should now toggle navigation mode.
1 comments:
Steve,
you'll be happy to know I'm going to be using linux more often. Normally I rarely use it, but now I have to as part of my job. Fedora is my favorite anyway.
Also, I get to learn python. and liblo. and cococs. and pyglet. at once. also, vi? really?
emacs ftw!!! actually, i use vim more than emacs.
Post a Comment