Ivan Shmakov <
onei...@gmail.com> writes:
> ... And all of this is done on the same VT. Presumably, it's
> VT7, accessible via either Ctrl-Alt-F7 or Alt-F7 (assuming
> default Linux and X keymaps.) The other VTs may be at
> Ctrl-Alt-F1 through Ctrl-Alt-F6, and my guess is that they're
> completely unused.
I work exclusively in the Linux VTs and my setup is similar to
yours. First, in .zprofile, based on what tty it is, I launch a
bunch of applications.
In tty1, I have Emacs. Instead of Lynx, I use Emacs-w3m (an Emacs
interface to the pager w3m, which was a convenient pick for the
developers, as w3m already could parse HTML) - I think it is more
convenient to have the web browser within Emacs, so that I can
yank web material into mails, Usenet posts, etc., *and* because I
am very familiar with Elisp, I can use that to write for example
web-search shorthands (to be invoked from anywhere within Emacs,
just like any other M-x command).
In tty2, I run a tmux session for terminal/file system/batch work
- I need it in part to split the screen into two terminals, but
mostly as a workaround to one of the most annoying limitations to
the Linux VTs - once you leave one, and get back, you can't
scroll! This is remedied with the tmux scroll mode.
In tty3, I run Irssi, within tmux, this time because I sometimes
want to copy material (i.e., dump it to a file).
From tty4, I launch X.
Here are some *very* helpful shortcuts so I can toggle between the
VTs without having to reach for the distant F1 etc. keys - so that
my hands can remain in "typing position":
#### /etc/console-setup/remap.inc
## invoke with
## loadkeys /etc/console-setup/remap.inc > /dev/null
## in /etc/rc.local (at least in my Debian)
## "ctrll" makes it work even when capslocked
## get keycode with `showkey'
## on-the-fly update: `loadkeys -c -s <file>' (a useful alias)
## cycling tty's (and tty6 -> X <- tty1)
# J
alt keycode 36 = Decr_Console
ctrll alt keycode 36 = Decr_Console
# K
alt keycode 37 = Incr_Console
ctrll alt keycode 37 = Incr_Console
### tty -> tty
# M-u - Emacs
alt keycode 22 = Console_1
ctrll alt keycode 22 = Console_1
# M-i - tmux/shell
alt keycode 23 = Console_2
ctrll alt keycode 23 = Console_2
# M-o - Irssi
alt keycode 24 = Console_3
ctrll alt keycode 24 = Console_3
### tty -> X
# M-p - X
alt keycode 25 = Console_7
ctrll alt keycode 25 = Console_7
# ` (left of `1') - X
alt keycode 41 = Console_7
ctrll alt keycode 41 = Console_7
In X, which I only use for video, I always run a fullscreen,
tabbed urxvt in which I have setup the corresponding shortcuts, so
that I can return to the VTs in the same way as I navigate between
them.
Last, I wrote this about scrolling - and shortcuts - not reaching,
not using the mouse:
http://superuser.com/a/610507/106960
--
Emanuel Berg - programmer (hire me! CV below)
computer projects:
http://user.it.uu.se/~embe8573
internet activity:
http://home.student.uu.se/embe8573