« Posts tagged Screen

My Irssi setup

First of all, I have Irssi running inside screen in xterm.
My .screenrc looks like this:

startup_message off
vbell off

## Auto Started programs when screen is started
screen -t calender       2   calcurse
screen -t bash       3  bash
screen -t bash       4   bash
screen -t bash       5   bash
screen -t htop       6   htop
screen -t irssi      1   irssi

## change the hardstatus settings to give an window list at the bottom of the
## screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][ %{g}%l%{g} ]%{g}[ %D %d %M %Y %c ]%{W}'

The Irssi scripts I currently use are:

  • anames.pl – similar to /names but show away people in different colour
  • hilightwin.pl – Print hilighted messages to window named hilight.
  • il.pl – adds a status bar item which show length of the input line, good for microblogging.
  • keepnick.pl – Try to get your nick back when it becomes available.
  • nact.pl – Adds an item which displays the current network activity. Needs /proc/net/dev.
  • nickcolor.pl – assign a different colour for each nick
  • trackbar.pl – Shows a bar where you’ve last read a window
  • usercount.pl – Adds a user count for a channel as a status bar item

The above Irssi scripts are a must for any true IRC/Irssi user IMHO.

The theme I use is a modification of the 88_madcows theme by Aaron Toponce, called the-hulk by me.

Here is a screenshot of my current irssi window:

You can download a copy of the theme here

Password protecting your screen session

Don’t use your usual password, as the method used is pretty weak (standard DES)

Open a screen session :

$ screen

Inside the session press ctrl + a then type :password

If successfully set, you should see [ Password moved into copybuffer ] in the lower left corner of the terminal.

Now you can detach by pressing ctrl + a then d

Reattach with :

$ screen -r

And now you should be prompted for the session password.