[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script for taking full advantage of screen in X environment

From: Torsten Scheck
Subject: Script for taking full advantage of screen in X environment
Date: Thu, 15 Sep 2005 15:02:34 -0000
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)

Dear fellow screen users:

My working environment is X with lots of xterms (in my case urxvt) and
I'm quite happy with this. But there have been many occasions, when I
wished that I were in a screen session, but I wasn't. To solve this
problem I use a script, which creates a new window in a shared screen
session for each new xterm. The script is bound to a keyboard shortcut
of my window manager (ion3).

# tested with debian

screen -x multiscreen -X eval "screen -t $$" other \
&& x-terminal-emulator -e screen -x multiscreen -p $$ \
|| x-terminal-emulator -e screen -S multiscreen

Rough explanation:

If there is no session named "multiscreen" then
  Create it in a new xterm.
  Send to the existing session commands to create a new screen-window
  with a unique title and switch back to previous window.
  Create a new xterm and display the newly created screen window.

It works for me: I can use screen features, when I need them. Otherwise
screen is transparent to my X working environment. (Except for the
missing xterm scrollback buffer, but I prefer screen's scrollback
history buffer anyway.)

As I haven't been a screen power user in the past, I'd be interested, if
there are better ways to accomplish screen integration in X.


Torsten Scheck <address@hidden>  Jabber:address@hidden
GnuPG 1024D/728E 6696 F43D D622 78F1  F481 45C0 2147 69AB DD54
software engineer:open standards/access/knowledge:enthgnusiast

reply via email to

[Prev in Thread] Current Thread [Next in Thread]