dot_screenrc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ####
  2. ## .screenrc v1.5 - get yourself a useable work environment =)
  3. # Written (w) 2003-2007 by Stephan Schmieder, <ssc@unixgu.ru>
  4. #############
  5. # $Id: screenrc-ssc 213 2010-08-11 20:37:29Z rb $
  6. #############
  7. # "activity in window #%n title: %t~"
  8. activity "%C -> %n%f %t activity!"
  9. # pass on the "beep" (CTRL-G) by adding a '~':
  10. bell "%C -> %n%f %t bell!~"
  11. # set colors for "messages" and "text marking"
  12. sorendition kG
  13. # [hostname ][windowlist][month and day][time]
  14. caption always "%{WB}%H %{kG}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kG}%?%+Lw%? %88=%{YR}%m-%d %94=%{RY}%c%="
  15. # console-screensave, (!)doesn't lock(!)
  16. # idle 180 eval "screen cmatrix" "idle 0"
  17. nethack on
  18. # key bindings
  19. bind t screen -t top 0 top
  20. bind c screen -t sh 1 bash -l
  21. bind e screen -t email 2 ssh unixgu.ru -t screen -d -R -S email /usr/local/bin/mutt
  22. bind s screen -t silc 3 ssh unixgu.ru -t screen -d -R -S silc /usr/local/bin/silc
  23. # play your music
  24. bind m screen -t music 4 sh -c 'echo -e "available bands:\n================"; ls ~/music/; echo -ne "\nWildcards \"*,?\" and groups \"{foo,bar}\" are supported.\nMake your choice: "; read REPLY; bash -c "mplayer -shuffle ~/music/$REPLY/*|grep Playing"; echo -ne "\033kmusic[EOF]\033\134"; read REPLY'
  25. # wget something with pseudo-interactive feedback (F=failed, C=completed)
  26. bind w screen -t wget 6 sh -c 'mkdir -p ~/downloads; cd ~/downloads; echo -n "URL?: "; read REPLY; wget --tries=23 --timeout=5 --waitretry=2 --continue "$REPLY" && echo -ne "\033kwget[C]\033\134" || echo -ne "\033kwget[F]\033\134"; read REPLY'
  27. # use F7 and F8 to cycle trough the windows
  28. bindkey -k k6 prev
  29. bindkey -k k7 next
  30. # unbind some keys
  31. bind .
  32. bind ^\
  33. bind \\
  34. bind K
  35. # termcap stuff
  36. termcapinfo xterm ti@:te@
  37. # make the cursor show up in red:
  38. termcapinfo linux "ve=\E[?25h\E[?17;0;64c"
  39. # this makes screen work within rxvt on cygwin:
  40. termcapinfo rxvt-cygwin-native ti@:te@
  41. # scrollback buffer in lines
  42. defscrollback 1000
  43. # my shell
  44. shell bash
  45. # no copyright message
  46. startup_message off
  47. # show messages for 2 seconds
  48. msgwait 2
  49. # visual bell
  50. vbell on
  51. vbell_msg " *beep* "
  52. # don't remember what these do
  53. deflogin off
  54. silencewait 15