>>>>> "wbennett" == wbennett <[email protected]> writes:
wbennett> Is it possible to make a shortcut key (hotkey?) to speed up
wbennett> repetitive tasks? For example---
Yes it is possible.
How to do it depends on what desktop you're running. Your window
manager should allow you to set keys and assign actions to them,
although some give more flexibility than others --- for example, you
can do almost anything with twm and its descendents tvtwm, piewm etc;
but windowmaker seems a lot more limited.
If your window manager can't assign arbitrary scripts to arbitrary
keys, you can try the utilities keylaunch or hotkeys.
Note that none of these work unless you have X running --- i.e., they
don't work over ssh, telnet, serial port, or VT console.
I personally like keylaunch.
After installing it, create a file called .keylaunchrc in your home
directory.
Each line in the file looks something like this:L
key=*..F1:xterm
key=*..F2:ssh -f -X -A home.com.au xterm -t home.com.au
Your example,
"Go into external hard drive", "open a new file" = F3
could be:
key=...F3:dtemacs `mktemp --tmpdir /media/sda1 fileXXXXXX`
which will start a new instance of emacs, or invoke an existing one,
on a new file called /media/sda1/file12344567
(where the Xs have been replaced by random numbers).
Individual programs have their own ways to set keyboard shortcuts,
too. Emacs is very seasy to customise, as is vi. I don't know what
programs you're trying to use.
Peter C
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html