forked from Hubbitus/configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
46 lines (36 loc) · 2.51 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
#http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html
#http://taint.org/wk/RemoteLoginAutoScreen
# https://bbs.archlinux.org/viewtopic.php?id=67464
# https://wiki.archlinux.org/index.php/GNU_Screen#Use_256_colors
#term screen-256color
term xterm-256color
#attrcolor b ".I" # allow bold colors - necessary for some reason
#terminfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # tell screen how to set colors. AB = background, AF=foreground
#defbce on # use current bg color for erased chars
termcap xterm 'XT'
terminfo xterm 'XT'
# https://wiki.archlinux.org/index.php/GNU_Screen#Use_X_scrolling_mechanism
termcapinfo xterm* ti@:te@
termcapinfo xterm 'bc@:bs@'
altscreen on
defscrollback 1000
defutf8 on
# https://wiki.archlinux.org/index.php/GNU_Screen#Fix_for_Name_column_in_windowlist_only_show_.22bash.22
windowlist string "%4n {%t} %h%=%f"
# http://aperiodic.net/screen/commands:hardstatus
#hardstatus alwayslastline '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
hardstatus alwayslastline
# http://aperiodic.net/screen/commands:backtick
# Activity command - play. Unfortunately & work only for full command, not for parts
backtick 1 0 1 bash -c 'function run(){ dtach -n $(mktemp -u /tmp/screen.backtrick.XXXXX) $@; }; run mpv --msg-level=all=no /usr/share/sounds/Oxygen-Sys-App-Error-Serious-Very.ogg ; run xcowsay --time=5 "Screen activity detected" 2>/dev/null || run xmessage -timeout 5 -nearmouse "Screen activity detected" '
# http://aperiodic.net/screen/monitoring
activity "%c activity -> %n%f %t^G %1`"
#mousetrack on
#http://linsovet.com/content/%D0%B7%D0%B0%D0%B9%D1%82%D0%B8-%D0%B2-screen-%D0%BD%D0%B0-%D1%83%D0%B4%D0%B0%D0%BB%D1%91%D0%BD%D0%BD%D0%BE%D0%B9-%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B5#comment-2017
screen -t EGAIS 0 bash -c 'cd /home/pasha/Projects/RLH/portal ; TERM=xterm-256color mc -x --skin=gotar; bash'
screen -t UNIDATA 1 bash -c 'cd /home/pasha/Projects/UniData/unidata/branches/unidata_RLH/ ; TERM=xterm-256color mc -x --skin=gotar; bash'
screen -t Ansible 1 bash -c 'cd /home/pasha/Projects/Ansible.cfg/ ; TERM=xterm-256color mc -x --skin=gotar; bash'
screen -t Tomcat 1 bash -c 'cd /opt/servers/apache-tomcat-9.0.0.M9 ; TERM=xterm-256color mc -x --skin=gotar; bash'
screen -t 'Tomcat logs' 1 bash -c 'cd /opt/servers/apache-tomcat-9.0.0.M9/logs ; TERM=xterm-256color mc -x --skin=gotar; bash'
screen -t bash 1 bash -c 'TERM=xterm-256color mc -x --skin=gotar; bash'
screen -t 256color-test /usr/bin/mc --skin=modarin256-defbg