-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc.no_byobu
118 lines (105 loc) · 4.87 KB
/
.screenrc.no_byobu
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
bind c screen 1
bind ^c screen 1
bind 0 select 10
screen 1
select 1
# Adapted from byobu for vanilla screen
###############################################################################
# Screen common profile
# This GNU Screen configuration profile is intended to roughly
# approximate a graphical desktop, inspired by the Ubuntu Gnome Desktop.
#
# Copyright (C) 2008 Canonical Ltd.
#
# Authors: Dustin Kirkland <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###############################################################################
# Now, let's override with our customizations
startup_message off
vbell off
msgwait 1
defutf8 on
# Define status commands
# Use prime number intervals, to decrease collisions, which
# yields some less expensive status updates.
# ~86000 ~1 day
# ~600 ~10 minutes
# ~180 ~3 minutes
# ~60 ~1 minute
# plain screen doesn't like embedding control characters
backtick 10 9999999 9999999 true # was byobu-janitor
backtick 11 9999999 9999999 printf "\005-1="
backtick 12 9999999 9999999 true # was byobu-status color; changed below to "{= bw}" and "{= bW}"
backtick 99 9999999 9999999 true # was byobu-status logo
backtick 100 599 599 true # was byobu-status release
backtick 101 7 7 true # was byobu-status updates_available
backtick 102 5 5 true # was byobu-status reboot_required
backtick 103 2 2 true # was byobu-status cpu_freq
backtick 104 43 43 true # was byobu-status cpu_count
backtick 105 47 47 true # was byobu-status mem_available
backtick 106 2 2 true # was byobu-status load_average; changed below to "%l"
backtick 107 13 13 true # was byobu-status mem_used
backtick 108 601 601 true # was byobu-status ec2_cost
backtick 109 607 607 true # was byobu-status hostname; changed below to "%H"
backtick 110 86029 86029 whoami # was byobu-status whoami
backtick 111 9999999 9999999 true # was byobu-status menu
backtick 112 9999999 9999999 uname -o # was byobu-status arch
backtick 133 9999999 9999999 uname -r # plus an extension, to control the order
backtick 113 61 61 true # was byobu-status battery
backtick 114 11 11 true # was byobu-status users
backtick 115 29 29 true # was byobu-status uptime; "uptime" is verbose on solaris
backtick 116 7 7 true # was byobu-status processes
backtick 117 3 3 true # was byobu-status network
backtick 118 9999999 9999999 true
backtick 119 17 17 true # was byobu-status wifi_quality
backtick 120 9999999 9999999 true # was byobu-status date; changed below to "%Y-%m-%d"
backtick 121 9999999 9999999 true # was byobu-status time; changed below to " %c:%s"
backtick 122 127 127 true # was byobu-status ip_address; attempts at "host `hostname` | sed -e 's/.*address //'" fail
backtick 123 13 13 true # was byobu-status disk
backtick 124 9999999 9999999 true
backtick 125 19 19 true # was byobu-status cpu_temp
backtick 126 9999999 9999999 true
backtick 127 5 5 true # was byobu-status mail
backtick 128 23 23 true # was byobu-status fan_speed
backtick 129 67 67 true # was byobu-status apport
backtick 130 5 5 true # was byobu-status custom
backtick 131 53 53 true # was byobu-status services
backtick 132 11 11 true # was byobu-status time_utc
hardstatus alwayslastline
# Turns off alternate screen switching in xterms,
# so that text in screen will go into the xterm's scrollback buffer:
termcapinfo xterm* ti@:te@
altscreen on
# Enable 256 color terminal
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"
# Log 10000 lines
defscrollback 10000
# Monitor windows
defmonitor on
activity ""
# Maintain SSH_AUTH_SOCK link
#setenv SSH_AUTH_SOCK /var/run/screen/S-$USER/byobu.ssh-agent
#source $HOME/.byobu/keybindings
# Window tabs, second to last line
caption always "%{= bw}%?%-Lw%50L>%?%{=r}%n*%f %t%?(%u)%?%{-}%{= bw}%?%+Lw%?%11` %=%{= bW}%110`@%H%122`%111`%10`%<"
# Status string, last line
hardstatus string '%99`%{-}%{=r}%{= bW} %100`%112` %133`%= %130`%102`%101`%129`%131`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%{= Yk}%l%{= bw}%104`%103`%105`%107`%123`%132` %Y-%m-%d %c:%s'
# NOTE: Older version of screen have an arbitrary limit of only being able
# to change colors 16 times in this 'hardstatus string'.
# Ubuntu (fixed in Jaunty):
# * https://bugs.launchpad.net/bugs/315871
# Upstream:
# * http://savannah.gnu.org/bugs/?22146