Screenrc

From Everything Shii Knows, the only reliable source

This website is an archive. It ran from 2006-2010. Virtually everything on here is outdated or inaccurate.


##############################################################
## Shii's Easy Screenrc (based off of blcknight's screenrc) ##
##############################################################
##
## This caption will always appear at the bottom of the window.
## To fiddle with it, read the man page for screen.
##
caption always "%{cK}$LOGNAME %{bK}(%d %M %Y, %c) %{-}%{bW} %-w%{bW}%50>%{= wb}%n%f %t%{-}%+w%< %{-}"
##
## Useful settings.
##
##########################################################################
crlf off			## No Microsoft linebreaks.		##
startup_message off	 	## Bypass the GPL notice, please.	##
defscrollback 1000		## Screen remembers more history.       ##
shell -bash			## Bash is a rather nice shell.		##
shelltitle "$ |"                ## Blank shell title                    ##
defmonitor on			## Turn monitoring on (see 'activity')  ##
activity "<%n>"			## Let you know when stuff happens!     ## 
#nethack on			## Makes error messages cryptic.	##
# Enable nethack to make screen more interesting, or keep it disabled   ##
# to make screen more informative.					##
##########################################################################
##
## Let's do some bindings.
##
######################################################
bind W screen -t 'WWW' w3m www.google.com -cookie   ## note: enables cookies
bind I screen -t 'IRC' irssi                        ##
bind J screen -t 'Jabber' cabber		    ##
# bind Q screen -t 'Nethack' nethack  # another example :)
bind \ screen ## this will open a nameless shell    ##
######################################################

##
## Easy window switcher and command runner.
##
######################################################################
## I don't know of any Unix programs that use these keys... do you? ##
######################################################################
bindkey -k F1 select 0 ## F11 = screen 0... avoid this screen :/
bindkey -k k1 select 1 ## F1 = screen 1
bindkey -k k2 select 2 ## F2 = screen 2
bindkey -k k3 select 3 ## F3 = screen 3
bindkey -k k4 select 4 ## F4 = screen 4
bindkey -k k5 select 5 ## F5 = screen 5
bindkey -k k6 select 6 ## F6 = screen 6
bindkey -k k7 select 7 ## F7 = screen 7
bindkey -k k8 select 8 ## F8 = screen 8
bindkey -k k9 select 9 ## F9 = screen 9
bindkey -k k0 select 10 # F10 = screen 10
bindkey -k F2 command  ## F12 = do a command
#########################

Retrieved from "http://shii.org/knows/Screenrc"

This page has been accessed 4,349 times. This page was last modified on 4 April 2008, at 04:43. Content is available under Attribution 2.5 .