-
Notifications
You must be signed in to change notification settings - Fork 9
/
screenrc
1556 lines (1556 loc) · 56.3 KB
/
screenrc
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# =====================================================================
# File: $HOME/.screenrc of Sven Guckes
# Available: http://www.guckes.net/Setup/screenrc
# Purpose: Setup file for program "(GNU) screen"
# written by: Sven Guckes setup-screenrc(at)guckes.net
# Latest change: Thu Jun 23 00:23:42 CEST 2011
# Length and size: ca 1542 lines - ca 57,300 bytes
# =====================================================================
# Latest user version: screen-4.0.3 [2006-10-23 15:10] 840602bytes
# yes - NO update for over 1700 days! :-(
# =====================================================================
# OLD LINKS:
# SCREEN Pages: http://www.guckes.net/screen/ CLOSED!
# MailList: http://www.yahoogroups.com/group/gnu-screen/ CLOSED!
# =====================================================================
# HomePage: http://www.gnu.org/software/screen/
# Chat: irc://irc.freenode.org/screen
#
# Download: ftp://ftp.uni-erlangen.de/pub/utilities/screen/
# Code: http://git.savannah.gnu.org/cgit/screen.git
#
# MailList: send to mailto:screen-users(at)gnu.org
# MailList Archive: http://mail.gnu.org/archive/html/screen-users
#
# MailLists: http://lists.gnu.org/mailman/listinfo/screen-devel
# http://lists.gnu.org/mailman/listinfo/screen-users
# MailListArch: http://lists.gnu.org/archive/html/screen-users/
# Wiki: http://aperiodic.net/screen/
# Google: http://www.google.com/search?q=gnu+screen
#
# 2011-01-12:
# http://kwlug.org/node/687
# GNU Screen for the impatient
# 2009-10-29 slides by Paul Nijjar for KWartzlab
#
# 2008-10-22:
# Terminal Screen [tscreen] - GNU screen fork
# http://www.steve.org.uk/Software/tscreen/changes.html
#
# HOWTOs, INTROS, and MANUALs:
#
# http://www.frexx.de/xterm-256-notes/
# 2006-01-20 Wolfgang Frisch
#
# macosxhints.com - Use 'screen' as a serial terminal emulator:
# http://www.macosxhints.com/article.php?story=20061109133825654
#
# Mac OS X terminal emulation notes:
# http://www.ethereal.net/~tristan/osx/terminal.html
#
# A dummies introduction to GNU Screen (by Kumar Appaiah)
# http://linuxgazette.net/147/appaiah.html
#
# [Gentoo Wiki] Using Screen:
# http://gentoo-wiki.com/TIP_Using_screen
#
# [Kuroshin] Gnu screen - an introduction:
# http://www.kuro5hin.org/story/2004/3/9/16838/14935
# http://jmcpherson.org/screen.html (update to previous article)
# by Jonathan McPherson
#
# [RedHat Magazine] A guide to Gnu Screen:
# http://www.redhatmagazine.com/2007/09/27/a-guide-to-gnu-screen/
#
# [Debian Administration] Using GNU Screen - by Steve Kemp [2004-10-17]
# http://www.debian-administration.org/articles/34
#
# [SUN.com] Installing and Using GNU Screen - by Amy Rich
# http://www.sun.com/bigadmin/features/articles/gnu_screen.html
#
# [Linux.com] Using screen for remote interaction - by Phil Hollenback [2006-08-22]
# http://www.linux.com/articles/56443
#
# [linuxforums.org] GNU Screen - the ASCII window manager
# by Girish Venkatachalam [2007-04-12]
# http://www.linuxforums.org/applications/gnu_screen__the_ascii_window_manager.html
#
# [neophob.com] GNU Screen cheat-sheet
# http://www.neophob.com/serendipity/index.php?/archives/112-GNU-Screen-cheat-sheet.html
#
# [lifehacker.com] Reduce Terminal Clutter With GNU Screen - by Annalee Newitz [2007-10-05]
# http://lifehacker.com/software/terminal-tip/reduce-terminal-clutter-with-gnu-screen-307609.php
#
# [softpedia.com] GNU Screen Tutorial - How to use the screen's most important features. # Mihai Marinof
# http://news.softpedia.com/news/GNU-Screen-Tutorial-44274.shtml
#
# blogamundo.net] A Visual Introduction to Screen - by NNN...
# http://blogamundo.net/code/screen/
#
# [rootprompt.org]
# GNU Screen logging for the paranoid - by Nick Anderson [2007-07-31]
# http://rootprompt.org/article.php3?article=11104
#
# FAQ:
# http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html
#
# [2009-01-17]
# http://www.pastacode.de/extending-gnu-screen-adding-a-taskbar/en/
# Extending GNU Screen - Adding a taskbar
# link: http://listserv.ccjclearline.com/pipermail/kwlug-disc/2006-November/002132.html
# link: http://b79.net/code/screenrc
#
# [2008-07-24]
# Adding Scripting with LUA:
# http://lists.gnu.org/archive/html/screen-users/2008-07/msg00045.html
# link: http://www.pidgin.im/~sadrul/pp/scripting-lua/
# The patches are against the development version of screen
# link: http://git.savannah.gnu.org/gitweb/?p=screen.git
#
# [2009-04-06]
# Screen Digraphs
# http://pthree.org/2006/08/11/screen-digraphs/
# by Aaron Toponce, 2006-08-11
#
# [2009-12-12]
# http://www.commandlinefu.com/commands/view/2276/getting-screens-copy-buffer-into-xs-copy-buffer-on-linux
# http://snarfed.org/space/synchronizing%20GNU%20screen%27s%20paste%20buffer%20and%20the%20X%20selection
#
# =====================================================================
# MANUALS:
# http://www.informatik.uni-hamburg.de/RZ/software/screen/screen_1.html
# http://www.cis.ohio-state.edu/cgi-bin/info/info/screen,Top [obsolete]
# http://www.delorie.com/gnu/docs/screen/screen_toc.html
# http://www.mediacollege.com/cgi-bin/man/page.cgi?topic=screen
# http://web.mit.edu/gnu/doc/html/screen_1.html Info pages in HTML [2010-09-27]
#
# PATCHES:
# Vertical Split for Screen:
# http://fungi.yuggoth.org/vsp4s/
#
# PORTS:
# screen 3.9.10 for cygwin
# [2007-02-15] by Antonio Dell'elce
# http://dellelce.com/code/screen/
#
# PRESENTATIONS:
# [bangmoney.org] screen - The Terminal Multiplexer - by Chris Lumens [2004-03-24]
# http://www.bangmoney.org/presentations/screen.html
#
# SETUP FILES:
# http://www.guckes.net/Setup/screenrc (this file)
# http://www.benedikt-wildenhain.de/.screenrc
# https://wiki.ubuntu.com/ScreenProfiles
# http://gentooly.homelinux.org/archives/669 Peter Meins
# page: http://www.tshack.net/?p=3 (James Shackleford)
# link: http://www.tshack.net/files/.screenrc
#
# TOOLS:
# screenie:
# http://pubwww.fhzh.ch/~mgloor/screenie.html
# Screenie is a small and lightweight GNU screen(1)
# wrapper that is designed to be a session handler
# that simplifies the process of administrating
# detached jobs by providing an interactive menu.
#
# Screen Profiles:
# https://help.ubuntu.com/9.04/serverguide/C/screen-profiles.html
#
# =====================================================================
# MISC:
#
# Title: Terminal Emulator 256 Color Support
# Date: 2007-09-10 by Trent Buck <trentbuck(at)gmail(dot)com>
# What: How to use emacs in screen within an urxvt on Debian (and Ubuntu).
#
# http://churchturing.org/w/screen/
# "the open source community that surrounds GNU Screen"
# by Abram Hindle 2005-04-02
#
# http://powersoffour.org/blog/?p=649
# Workspace
# Posted August 10, 2008
#
# MORE:
# http://www.linuxwiki.de/screen
# http://www.unixwitch.de/de/sysadmin/tools/screen
# http://www.tutorials.de/forum/linux-tutorials/151906-einfuehrung-screen.html
#
# =====================================================================
# ALTERNATIVES
#
# tmux:
# http://niallohiggins.com/2009/06/04/tmux-a-bsd-alternative-to-gnu-screen/
# 2009-06-04 by Niall O'Higgins
#
# http://linuxwiki.de/tmux
# 2010-07-28 by Sven Guckes and Anselm Helbig
#
# http://www.techrepublic.com/blog/opensource/is-tmux-the-gnu-screen-killer/1901
# 2010-10-05 by Chad Perrin
#
# =====================================================================
#
# =====================================================================
# 2005-10-26: to get only the relevant lines of config from
# this file, search for all non-commented lines like this:
# grep -v '^#' screenrc > screenrc.small
# and if you do not care about key bindings
# then eliminate these with another grep:
# grep -v '^#' screenrc | grep -v bind > screenrc.smaller
# ======================
# screen 4.0.1 NEW STUFF
# ======================
# screen 4.0.1 has a new command - "idle".
# "idle N" executes the following command
# after an "idle time" of N seconds.
#
# example: lock the current screen session
# after 420 seconds (seven minutes) of idle time:
# idle 420 lockscreen
#
# mind you - this command will kick in *again* after *another*
# idle time of N seconds. a session can be locked only *once*
# so this is not a big deal. however, if you let "idle" start
# a new window with a new process in it then it will keep starting
# new processes until the maximum number of windows is filled.
#
# another example: after the "idle timeout" start a new window
# with the console screen saver "cmatrix" and (important!)
# reset the idle mechanism after that:
# idle 6666 eval "screen cmatrix" "idle 0"
#
# without the "idle 0" this would start new windows with cmatrix
# again and again after the timeout has passed once more...
#
# CMatrix - a console screensaver by Chris Allegretta chrisa(at)asty.org
# homepage: http://www.asty.org/cmatrix cmatrix 1.2a [2002-03-31]
# download: http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz
#
# more ideas:
# situation: you are using screen within an xterm on X.
# let "idle" start "xtrlock" (X transparent lock); it simply
# shows a lock icon in the middle of the X screen but other
# than that simply waits for you to enter your password
# while showing the whole screen transparently, that is
# you can still see the xterm with the screen session inside.
# let idle also a script which loops through the windows of
# your screen sessions with eg
# for i in `seq 666`; do
# sleep 10; screen -X next
# done
# adjusting the hardcopy line for this loop
# is left to the reader as an exercise. ;-)
#
# ===============================================================
# ENVIRONMENT
# ===============================================================
# The DISPLAY variable tells programs which display to use.
# This mainly affects programs running on the X server.
# However, when I use screen then I am usually using a terminal -
# and programs do not need to contact the X server.
# This results in programs waiting for some timeout when
# they start up - and this just keeps getting in my way.
# I therefore unset the DISPLAY variable with this command:
## unsetenv DISPLAY
# Text Tools rule! :-)
#
# Note: the command "setenv DISPLAY ''"
# defines the variable DISPLAY to have an empty value.
# but of course it would still *exist*.
# and some programs seem to react to the
# DISPLAY variable even if it is empty.
# so to turn off the effect you *must*
# "unset" the variable.
#
# ===============================================================
# ESCAPE - the COMMAND CHARACTER
# ===============================================================
# escape ^aa # default
# escape ^pp # suggested binding for emacs users
escape ``
#
# FAQ: i forgot which the escape character for the current session is.
# how do i find out which the current escape character is?
# A: there is no command which shows the current escape character.
# but if there is only *one* session then you can *reset*
# the escape character from the shell by giving
# the current session the following command:
# screen -X escape ^Aa
#
# i suggest you prepare your shell with the following aliases:
# alias Ea='screen -X escape ^Aa'
# alias Eo='screen -X escape ^Oo'
# alias Ep='screen -X escape ^Pp'
# alias Ex='screen -X escape ^Xx'
# alias Ex='screen -X escape ^Zz' # if you do not use suspend in shells
#
# define *F11* as another command key:
# bindkey -k F1 command
#
# 2010-04-11
# use CTRL-Z as yet another command character:
# bind ^Z command
# (thanks, Max! :-)
#
# ===============================================================
# STARTUP of programs in an extra window:
# ===============================================================
# Uncomment one/some following lines to automatically let
# SCREEN start some programs in the given window numbers:
# screen -t MAIL 0 mutt
# screen -t EDIT 1 vim
# screen -t GOOGLE 2 links http://www.google.com
# screen -t NEWS 3 slrn
# screen -t WWW 4 links http://www.guckes.net/
#
# ===============================================================
# VARIABLES - Boolean values (on/off) aka Switches aka Toggles
# ===============================================================
# allpartial on # default: ??? refresh only current line on window
# interesting to see what exactly applications are updating.
# but can be quite confusing, too. dont use for real work. ;)
altscreen on # default: off enable "alternate screen" support
autodetach on # default: on automatically detach on hangup
# autonuke ?? # default: ??? "clear screen" nukes unwritten output
# bce ?? # default: ??? "background color erase"
# c1 ?? # default: ??? use characters 128 to 159 as control functions
# compacthist ?? # default: ??? suppress trailing blank lines in history buffer
# console ?? # default: ??? grab output to /dev/console
crlf off # default: off no crlf for end-of-lines
# debug ?? # default: ??? runtime debugging
# defautonuke ?? # default: ??? default setting for autonuke
defbce on # default: ??? default setting for bce
# defc1 ?? # default: ??? default setting for c1
# defflow ?? # default: ??? default setting for flow
# defgr ?? # default: ??? default setting for gr
# deflog ?? # default: ??? default setting for log
deflogin off # default: on default setting for login
# defmonitor ?? # default: ??? default setting for monitor
# defnonblock ?? # default: ??? default setting for nonblock
defsilence off # default: off default setting for silence
# defutf8 ?? # default: ??? default setting for utf8
# defwrap ?? # default: ??? default setting for wrap
# defwritelock ?? # default: ??? default setting for writelock
# flow ?? # default: ??? flow-control mode
# gr ?? # default: ??? GR charset
hardcopy_append on # default: off append hardcopies to hardcopy files
ignorecase on # default: off ignore case in searches
# logtstamp ?? # default: ??? time-stamps of inactivity for logfiles
# multiuser ?? # default: ??? Switch between singleuser and multiuser mode.
# nethack on # default: off nethack style messages
# partial on # default: off redisplay current window after switch?
# pastefont ?? # default: off include font information in the paste buffer?
startup_message off # default: on NO startup_message - thankyou!
# utf8 ?? # default: ??? ...
vbell off # default: ??? be silent on bells
#
# ===============================================================
# COMMANDS
# ===============================================================
# log ?? # default: ??? start/stop writing output to current window to "screenlog.n"
# login ?? # default: ??? login/logout current window for "who" (utmp database)
# monitor ?? # default: ??? monitor activity of current window
# setsid ?? # default: on ...
# silence 15 # default: off do not check windows for silence
# verbose ?? # default: ??? ...
# wrap ...
# writelock ?? # default: ??? ...
#
# ===============================================================
# TERMCAP and TERMINFO
# ===============================================================
#
# man 5 termcap:
# te End program that uses cursor motion
# ti Begin program that uses cursor motion
# termcapinfo xterm ti@:te@
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
#
# termcap xterm 'AF=\E[3%dm:AB=\E[4%dm'
# terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
#
# Matthias Kopfermann <matthias_kopfermann(at)gmx.de> [020222]:
# make the cursor show up in red:
termcapinfo linux "ve=\E[?25h\E[?17;0;64c"
#
# David Breach <david(at)davidbreach.co.uk> [2003-10-13]:
# this makes screen work within rxvt on cygwin:
termcapinfo rxvt-cygwin-native ti@:te@
#
term screen-256color
# ===============================================================
# VARIABLES - Number values
# ===============================================================
defscrollback 4096 # default: 100
# WARNING: RAM is allocated right away - not at runtime.
# so setting this value to 10.000 or more
# can cause your machine to swap instantly.
# msgminwait 3 # default: 1
nonblock 23 # default: ??? unblock display after N secs of refusing output
silencewait 15 # default: 30
#
# ===============================================================
# VARIABLES - Paths and Files (esp. programs)
# ===============================================================
# bufferfile: The file to use for commands
# "readbuf" ('<') and "writebuf" ('>'):
# bufferfile $HOME/.screen_exchange
#
# hardcopydir: The directory which contains all hardcopies.
# hardcopydir $HOME/.hardcopy
hardcopydir $HOME/.screen
#
# shell: Default process started in screen's windows.
# Makes it possible to use a different shell inside screen
# than is set as the default login shell. Halleluja! :-)
# shell zsh
#
# most users will probably use the "bash" as the default shell:
# shell bash
# shell ksh
# shell tcsh
# for an overview to shells see page http://georg.f-451.net/shells/
#
# FAQ: to make the shell in every window a login shell
# simply make use of $SHELL and add '-' in front of it:
shell -$SHELL
#
# ===============================================================
# VARIABLES - Strings
# ===============================================================
#
# some notes on COLOR before explaining its use in
# the commands caption, hardstatus, and sorendition.
#
# COLOR: colors codes are combinations of
# [attribute modifier] [color description],
# eg "%{ambf}" where
# a=attribute, m=modifier, and
# b=background, f=foreground.
# the manual talks of "attribute/color modifiers".
# see the manual, section "STRING ESCAPES".
#
# Color table:
# 0 Black . leave color unchanged
# 1 Red b blue
# 2 Green c cyan
# 3 Brown / yellow d default color
# 4 Blue g green b bold
# 5 Purple k blacK B blinking
# 6 Cyan m magenta d dim
# 7 White r red r reverse
# 8 unused/illegal w white s standout
# 9 transparent y yellow u underline
#
# ===========================================
# CAPTION - shows a "caption" for the window.
# ===========================================
# a "caption" is another line which can show information -
# in addition to the hardstatus line.
#
# use caption to show window list:
# caption always "%{= kc}%?%-Lw%?%{= kY}%n*%f %t%?(%u)%?%{= kc}%?%+Lw%?"
#
# caption always '%{= wb}%50=%n%f %t%{= wb}'
# this basically just shows the current window number and title
# on its own; the "%50=" displays it in the middle of the line.
#
# caption always "%>%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?%<"
# caption always "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
# caption always "%?%F%{.RW}%?%3n %t%? [%h]%?"
# caption always "%{rk}%H %{gk}%c %{yk}%M%d %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
#
# caption always "%{kG}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kG}%?%+Lw%?"
# color--------color================color++++++++
caption always "%{gk}%n: %{ck}%H %{gk}%t%=%?%-Lw%?%{ck}%n*%f %t%{-}%?%+Lw%? %{yk}[%Y-%m-%d %0C%A]"
#
# current CAPTION [2005-04-12]
# "= " clears all color attributes. somehow this was necessary.
# hostname (in yellow on red), current window (in white on blue),
# then the usual line of the windows *before* to the current one (%-Lw)
# the current one (yes, *again*) (%n), and the windows *after* the current one (%+Lw)
# caption always "%{= RY}%H %{wb}%n*%f %t%?(%u)%? %{Gk}%?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{Gk}%?%+Lw%?"
#
# "push right border: current time with seconds and current date"
# caption always "%=%c:%s %Y-%m-%d"
#
# ===============================
# Hardstatus Line and sorendition
# ===============================
# hardstatus: Always show the window list in the last line:
# hardstatus alwayslastline "%w"
# hardstatus alwayslastline "%H %w"
hardstatus off
#
# use 'L' between '%' and 'w' to show the flags, too1
# hardstatus alwayslastline "%H %Lw"
#
# example by Adam Spiers <gnu-screen(at)adamspiers.org> :
# *without* colors:
# hardstatus alwayslastline "%?%-Lw%?%n*%f %t%?(%u)%?%?%+Lw%?"
# *with* colors:
# hardstatus alwayslastline "%?%{yk}%-Lw%?%{wb}%n*%f %t%?(%u)%?%?%{yk}%+Lw%?"
#
# This will show the current time and today's date in YYmmdd, too:
# hardstatus alwayslastline " %c | %Y%m%d | %w"
#
# This will show today's date in mmdd and the current time, too:
# hardstatus alwayslastline " %m%d %c | %w"
#
# combining all of these gives:
# hardstatus alwayslastline "%{rw}%H%{wk}|%c|%M%d|%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
#
# this uses a black background foreverything execpt for
# the current window which is show on a white background.
# hostname in red, clock in green, date in yellow:
# hardstatus alwayslastline "%{rk}%H %{gk}%c %{yk}%M%d %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
#
#
# hardstatus alwayslastline "%{rk}host: %H %33=%{yk}date: %M%d %66=%{gk}time: %c:%s%="
#
# hardstatus alwayslastline "%{rk}host: %H %33=%{yk}date: %M%d %66=%{gk}time: %c%="
#
# no "host:", "date:", or "time:" here.
# instead, the info gets placed at 16%, 50%, and 80% so that it is
# placed soemwhat in the middle of each of the three panels.
# hardstatus alwayslastline "%{RY}%16=%H %33=%{YR}%50=%M%d %66=%{Gb}%80=%c%="
#
# 2003-08-19
# insert the main url of the screen pages:
# hardstatus alwayslastline "%{BW}www.guckes.net/screen/%50=%{RY}host: %H %85=%{YR}%M%d %92=%{Gb}%c%="
# hardstatus alwayslastline "%{BW}%50=%{RY}host: %H %85=%{YR}%M%d %92=%{Gb}%c%="
# until 2005-04-06
# hardstatus alwayslastline "%{BW}load: %l%29=%{RY}host: %H %60=%{YR}date: %M%d %80=%{Gb}time: %c%="
#
# 2005-04-06: host load time Month+day
# hardstatus alwayslastline "%{RY}%H %{BW}%l %{Gb}%c %M%d"
#
# current HARDSTATUS [2005-04-12]
# patterns: host, load, time, date.
# the "%=" at the end extends the current color unto the end of the line.
# hardstatus alwayslastline "%{= RY}%H %{BW}%l %{Gb}%c %M%d%="
# 2009-01-11 18:00: changed to date+time, ie "YYYY-MM-DD HH:MM":
# hardstatus alwayslastline "%{Gb}%Y-%m-%d %c %{= RY}%H %{BW}%l%{Gb} %="
#
# Eisenstadt
# hardstatus alwayslastline "%{Gb}Linuxwochen Eisenstadt %M%d %c %="
#
# Wien
# hardstatus alwayslastline "%{Gb}%M%d %c -- Linuxwochen Wien 2005 - Z-Shell Featurama%="
# hardstatus alwayslastline "%{Gb}2010-%m-%d %c -- Agenda 2010 - Total Control%="
#
# =====================================================
# the backtick command
# =====================================================
# 2003-03-26, 2005-03-12 examples for backtick
# format: backtick id lifespan autorefresh cmd args...
#
# "news ticker": use the hardstatus line to show
# the latest news of the IT ticker at heise.de:
# backtick 1 127 0 heise
# hardstatus alwayslastline "%{bw}%1`%= "
#
# "kernel info": show the output of "uname -a":
# backtick 23 0 0 uname -a
# hardstatus alwayslastline "%{bw}%23`"
#
# "taken space in /home partition"
# backtick 15..
# DF=$(df -h -P | grep /home|grep -o '[0-9]*%')
#
# Caveats:
# there is no way to update a backtick command manually.
# every backtick commands stops screen
# until the proces has finished.
# if this takes some time then it can
# seriouly interrupt your use of screen.
# =====================================================
# sorendition
# =====================================================
# note: the use of ANSI color sequences is deprecated.
# please upgrade to (at least) screen 3.9.13
# so you can make use of the color letters/names!
#
# "sorendition": set the colors for
# the "messages" and "text marking"
# (ie text you mark in copy mode):
#
# sorendition 10 99 # default!
# sorendition 02 40 # green on black
# sorendition 02 34 # yellow on blue
# sorendition rw # red on white
# sorendition kG # black on bold green
sorendition kw # black on white
# =====================================================
#
#
# ============================
# Password
# ============================
# # password SZnBqiqMtfa6k
# password ODSJQf.4IJN7E # password is "1234"
# WARNING!! Do NOT remove the comment
# if you don't know what this does!
# read on:
# this commands sets the *internal*
# password for the screen session.
# if this is set then a "lock" command will
# only let you in to the session after you
# enter the user's account password and then
# also the internal password for that session.
# so this gives additional safety.
# but if you forget the internal password
# then you can also forget about the session - ok?!
#
# FAQ: how to turn password checking off?
# A: use ":password none" and you'll get the
# response "Password checking disabled".
#
# ===============================================================
# Messages
# ===============================================================
# There are two kinds of messages: "activity" and "bell"
# They are also the names of the commands that set the
# respective messages. In every message there can be "meta
# strings" which are replaced by values. A meta string starts
# with a percent sign and is then followed by one
# of the following letters: aAcCdDfFhHlmMnstuwWyY
# The meta strings usually refer to the current
# date and time or to a window title or number.
# There are also some specials like embedded branches (with %?),
# color codes (with %{xy}) and padding (with %=, %<, %>).
# you can find their description in the manual in section
# "STRING ESCAPES":
# %% percent sign (the escape character itself)
# %a either 'am' or 'pm' - according to the current time
# %A either 'AM' or 'PM' - according to the current time
# %c current time HH:MM in 24h format
# %C current time HH:MM in 12h format
# %d day number - number of current day
# %D Day's name - the weekday name of the current day
# %f flags of the window
# %F sets %? to true if the window has the focus
# %h hardstatus of the window
# %H hostname of the system
# %l current load of the system
# %m month number
# %M month name
# %n window number
# %s seconds
# %t window title
# %u all other users on this window
# %w all window numbers and names.
# %-w all window numbers up to the current window
# %+w all window numbers after the current window
# %W all window numbers and names except the current one
# %y last two digits of the year number
# %Y full year number
#
# Older versions of screen used a single '%' character
# to display window titles - but since version 3.7 this is
# obsoleted by '%n' and it will vanish in future releases.
# So please update your screenrc to meet this convention!
#
# ===============================================================
# "~" stands for the "bell" character
#
# activity 'Activity in window %n' # default
# use %n to display the window number and %t for its title:
# activity "activity in window #%n title: %t~"
activity "%C -> %n%f %t activity!"
#
# pass on the "beep" (CTRL-G) by adding a '~':
# bell "%C -> %n%f %t bell!~"
bell_msg "Bell in window %n"
#
# pow_detach_msg: Message shown when session gets power detached.
pow_detach_msg "BYE"
#
# vbell_msg: Message shown when the "virtual bell" rings.
vbell_msg " *beep* "
#
# ==============================================================
# BIND bind - defaults
# ==============================================================
# The "bind" command assign keys to (internal) commands
# SCREEN checks all the keys you type; you type the key
# which is known as the "command character" then SCREEN
# eats this key, too, and checks whether this key is
# "bound" to a command. If so then SCREEN will execute it.
#
# The command "bind" allows you to chose which keys
# will be assigned to the commands.
#
# Some commands are bound to several keys -
# usually to both some letter and its corresponding
# control key combination, eg the command
# "(create) screen" is bound to both 'c' and '^C'.
#
# The following list shows the default bindings:
#
# break ^B b
# clear C
# colon :
# copy ^[ [
# detach ^D d
# digraph ^V
# displays *
# dumptermcap .
# fit F
# flow ^F f
# bind f screen -t FETCH fetchmail -a
# bind f screen -t DE<>FR links http://dict.leo.org/frde?lang=de&lp=frde
# focus ^I
# hardcopy h
# help ?
# history { }
# info i
# kill K k
# lastmsg ^M m
# license ,
# log H
# login L
# meta x
# monitor M
# next ^@ ^N sp n
# number N
# only Q
# other ^X
bind o other
# pow_break B
# pow_detach D
# prev ^H ^P p ^?
# quit \
# readbuf <
# redisplay ^L l
# remove X
# removebuf =
# reset Z
# screen ^C c
# select " '
# silence _
# split S
# suspend ^Z z
# time ^T t
# title A
# vbell ^G
# version v
# width W
# windows ^W w
# wrap ^R r
# writebuf >
# xoff ^S s
# xon ^Q q
# 2006-12-01 i hardly ever use xon+xoff.
# but as the q is next to the a it is nice
# to use it for entering copy mode.
bind q copy
#
# ^] paste .
# - select -
# 0 select 0
# 1 select 1
# 2 select 2
# 3 select 3
# 4 select 4
# 5 select 5
# 6 select 6
# 7 select 7
# 8 select 8
# 9 select 9
# 2009-03-06
# idea: use the characters of
# the shifted digits to select
# the windows from #11 to #19:
# digits: 1234567890
# shifted: !@#$%^&*()
# bind ! select 11
# bind @ select 12
# bind \# select 13
# bind $ select 14
# bind % select 15
# bind ^ select 16
# bind * select 17
# bind ( select 18
# bind ) select 19
#
# I login on
# O login off
# ] paste .
#
# Pretend that the window numbering starts at 1, not 0.
# Then use command '0' to jump to window number #10.
bind c screen 1
bind 0 select 10
screen 1
#
# ===============================================================
# the following table shows the default listing:
#
# lowercase letters:
# abcdefghijklmnopqrstuvwxyz
# -bcd-f-hi-klmn-pqrst-vwx-z -> bcdfhiklmnpqrstvwxz
#
# capital letters:
# ABCDEFGHIJKLMNOPQRSTUVWXYZ
# ABCD-F-H--KLMN--Q-S---WX-Z -> ABCDFHKLMNQSWXZ
#
# control + letters:
# ABCDEFGHIJKLMNOPQRSTUVWXYZ
# -BCD-FGHI--LMN-PQRST-VWX-Z[?@ -> BCDFGHILMNPQRSTVWXZ[?@
#
# other keys:
# "'*,.:<=>?[\_{}
# for krautboards (LANG=de_DE):
# binding the umlauts ´äöü´:
# bind ä copy
# bind ö copy
# bind ü copy
# ===============================================================
# Key bindings
# ===============================================================
# Remove some default key bindings by binding
# them to "nothing" (empty right-hand-side):
#
# bind . dumptermcap # default
bind .
# bind ^\ quit # default
bind ^\
# bind \\ quit # default
bind \\
# bind h hardcopy # default
# bind h
# bind ^h ??? # default
# bind ^h
# bind } history # default
# bind }
#
# And here are the default bind commands if you need them:
#
# bind A title
# bind C clear
# bind D pow_detach
# bind F fit
# bind H log
# bind I login on
# bind K kill
# bind L login
# bind M monitor
# bind N number
# bind O login off
# bind Q only
# bind S split
# bind W width
# bind X remove
# bind Z reset
#
# ==============================================================
# KEY BINDING FAQ:
# ==============================================================
# FAQ: So many keys are bound to some command already -
# which keys are unbound yet? Which are free for binding?
# A: SCREEN does not have a command to show you
# a table of currently unbound keys - sorry!
# You simply have to read this setup file. ;-)
#
# Summary: Here is a table of the keys
# which are not bound by default:
# unbound: -B--E-G--J-L---P-R-TUV--Y-
# bound: A-CD-F-HI-K-MNO-Q-S---WX-Z
#
# I suggest that you do not change the bindings for
# 'H' ("log") and 'M' ("monitor") as they are *really*
# useful and you might want to use them a lot;
# in this case it is recommended to use
# the defaults to avoid confusion.
# personally, I use 'A' ("title") quite often, too.
#
# If you are using "split windows"
# then you will also use the command
# associated with the keys FQSX a lot, too -
# so do not change their bindings, either!
#
# TAB -> :focus
# F -> :fit
# Q -> :only
# S -> :split
# X -> :remove
#
# changing to adjacent screen region up/down
# in vi style key bindings
bind j focus down
bind k focus up
# make current region the only region:
# bind o only
#
# Anyway, I have bound the unbound uppercase letters
# to start programs in windows directly, ie without
# starting a new window with a shell within first.
# This simply saves shells and thus saves RAM -
# and also avoids that the title of windows is
# the name of your shell. Also, you need not "exit"
# from a shell when you are done with some program.
# And when using "zombie mode" then the window will stay
# and you can resurrect them with the CTRL-SPACE command.
# cool! :-)
#
# enable "zombie mode":
# zombie z
# here the parameter 'z' defines the key
# which makes a zombie window go away.
#
#
# ==============================================================
# BIND and the Services:
# ==============================================================
# I am using the uppercase letters to start programs/services:
#
# the idea:
# bind <key> <command>
# this binds the key to start a windows with <command> inside.
#
# the command "screen" starts a "window" -
# and the default key is 'c' for "create".
# (i know - this *is* confusing at first.)
# with 'screen -t title" you can set a titlestring.
# the number following is the window number to be used.
# if the window number is already taken then
# the least highest available number is used.
#
# FAQ: How to make screen start with a count on "1" rather than "0":
# use this workaround: it uses "1" as the minimum number for slots
# when using the 'c' command to create new screens:
# bind c screen 1
#
# 2005-04-22:
# inserting the current date as YYYY-MM-DD
# by Julius Plenz and Stephane Chazelas:
# bind d exec .!. zsh -c 'print -Pn %D{%F}'
# (this obviously requires a "zsh")
#
# Pasting copied text from the paste buffer:
# The default key bidning for "paste" is bound to ']':
# bind ] paste .
# bind p paste .
# The character ']' is hard to type on keyboards with German layout,
# as it requires the use of a yet another meta character "AltGR".
# I prefer to use 'p' for "paste" because it is easy to memorize
# and also a letter which is available at the same position
# on both US keyboards and keyboards with "Kraut layout".
#
# 2006-02-28:
# bind z suspend
# i hardly ever suspend a session. well, actually never.
# but i like the idea that 'z' would switch to the next Z-shell,
# or rather, to the next window with the title "zsh":
# bind z select zsh
# then again, if you are already on such a window
# then screen would not switch to the next one
# but insist on staying on the current one -
# telling me "This IS window 10 (zsh)." bah!
# possible workaround: switch to the next window first
# and then select the next (or current) "zsh" window.
#
# to see all current bindings
# of this file from within vi:
# :g/^ bind [A-Z]/p
# ===============================================================
# BIND Sven's Bindings:
# ===============================================================
# bind A screen -t AUGSBURG 5 links http://imi.st/prog-LIT07.html
# bind A select 10
# bind B ...
# bind C screen -t CHEMNITZ 9 links http://chemnitzer.linux-tage.de/2009/info/
# bind D screen -t DICT 4 links dict.tu-chemnitz.de/pda
# bind D screen -t DRESDEN 4 links http://linux-info-tag.de/100/room?track=17
# bind D screen -t DRESDEN 4 links http://linux-info-tag.de/93/room?track=14 # program 2007
# bind E screen -t DEEPSEC links http://www.deepsec.net/
# bind e screen -t mail 0 mutt
# bind F screen -t FSCONS 4 links http://www.fscons.org/
# bind G screen -t Google 0 links www.google.com
# bind H screen -t Heise 0 links www.heise.de
# bind I screen -t IMDB 9 links http://us.imdb.com/search/
# bind J screen -t Kunstlab 0 links http://kunstlabor.at/
# bind K screen -t KDE 0 links http://conference2004.kde.org/
# bind L screen -t LUX 0 links http://www.linuxdays.lu/agenda/linuxdays-2007
# bind L screen -t LINZ 8 links http://www.iktforum.at/programme.html
# bind M monitor # default!
# bind N screen -t NB 8 newsbeuter
# bind O screen -t WOS3 0 links http://wizards-of-os.org/
bind P paste .
# bind Q screen -t HOME 0 links http://www.guckes.net/
# bind R screen -t BRB 0 links http://www.linuxtag-brb.de/vortragsprogramm.html
# Reload this configuration file after changes:
bind R colon "source $HOME/.screenrc"
# bind S screen -t slrn 3 slrn -n -C -k0 -h news.vr.in-berlin.de
# bind T screen -t T-DOSE links http://www.t-dose.org/schedule/
# bind T screen -t Thesaurus 7 links http://synonyme.woxikon.de/
# bind V screen -t vim 0 vim -X
# bind W screen -t WIEN 4 links http://linuxwochen.at/2007/Programm_Wien:_Index
# bind W screen -t WIEN 4 links http://linuxwochen.at/
bind X lockscreen
# bind Y stuff http://www.guckes.net/
# bind Z screen -t HOME 8 links http://myblog.de/linuxweekend
# bind Z screen -t Wetter 0 links http://www.donnerwetter.de/region/region.hts?lid=DE14356&Ort=BERLIN
# f*ck, yeah! http://www.thefuckingweather.com/?zipcode=berlin+germany&CELSIUS=yes
# bind Z screen -t Graz 4 links http://linuxtage.at/
#
# binding the CTRL-keys:
# bind ^Y screen -t log watch -n 5 tail -23 /var/log/syslog