guest@dotshare [~/groups/terms/screen] $ ls For-Screen-Noobs/ | cat

For Screen Noobs (scrot)

meskarune Apr 22, 2012 (terms/screen)

screenrc(raw, dl)

SCROT

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#Turn off Start Message
startup_message off

#Automatically Detach Session
autodetach on

#Use utf8
defutf8 on

#Status Bar and Info Bar

backtick 1 60 60 $HOME/.scripts/screen/user.sh

caption always "%{-b gk}%-w%{+b kg}%50>%n %t%{-b gk}%+w%< %= %{y}%1`%{c}@%{m}%H %{w}%D %M %d %{w}%C:%s%a"
hardstatus on
hardstatus alwayslastline "shortcuts: [C-a] c = new <space> = next <backspace> = previous <shift> a = rename d/r = detach, retach :quit = end session"

## set the default shell
shell bash

# screens
screen -t 'bash'
screen -t 'music' cmus
screen -t 'IRC' weechat-curses
screen -t 'ssh' 
screen -t 'tetris' vitetris
screen -t 'mail' cone
screen -t 'chat' centerim

CLICK TO VIEW

x

user.sh(raw, dl)

1
2
3
#!/bin/bash

whoami
 

x

Notes

This screen configuration has a status line with the current username and host, time and list of open screen windows. The second status line lists screen keyboard shortcuts. This is useful for someone just starting to learn how to use screen.

ctrl-a is the modifier key

Modifier key + c creates a new window, Modifier key + spacebar moves to the next window, etc

See the screenshot to see how those commands are listed within screen itself.

Comments

Gargantua said about 12 years ago

Thanks dude.

woddfellow2 said about 11 years ago

I made it fit within 80 characters: http://sprunge.us/heJA