1
###############################################################################
2
# Screen common profile
3
# This GNU Screen configuration profile is intended to roughly
4
# approximate a graphical desktop, inspired by the Ubuntu Gnome Desktop.
6
# Copyright (C) 2008 Canonical Ltd.
8
# Authors: Dustin Kirkland <kirkland@canonical.com>
10
# This program is free software: you can redistribute it and/or modify
11
# it under the terms of the GNU General Public License as published by
12
# the Free Software Foundation, version 3 of the License.
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program. If not, see <http://www.gnu.org/licenses/>.
21
###############################################################################
23
# Now, let's override with our customizations
29
# Define status commands
30
# Use prime number intervals, to decrease collisions, which
31
# yields some less expensive status updates.
36
backtick 10 9999999 9999999 byobu-janitor
37
backtick 11 9999999 9999999 printf "\005-1="
38
backtick 12 9999999 9999999 byobu-status color
39
backtick 99 9999999 9999999 byobu-status logo
40
backtick 100 599 599 byobu-status release
41
backtick 101 7 7 byobu-status updates_available
42
backtick 102 5 5 byobu-status reboot_required
43
backtick 103 2 2 byobu-status cpu_freq
44
backtick 104 43 43 byobu-status cpu_count
45
backtick 105 47 47 byobu-status mem_available
46
backtick 106 2 2 byobu-status load_average
47
backtick 107 13 13 byobu-status mem_used
48
backtick 108 601 601 byobu-status ec2_cost
49
backtick 109 607 607 byobu-status hostname
50
backtick 110 86029 86029 byobu-status whoami
51
backtick 111 9999999 9999999 byobu-status menu
52
backtick 112 9999999 9999999 byobu-status arch
53
backtick 113 61 61 byobu-status battery
54
backtick 114 11 11 byobu-status users
55
backtick 115 29 29 byobu-status uptime
56
backtick 116 7 7 byobu-status processes
57
backtick 117 3 3 byobu-status network
58
backtick 118 9999999 9999999 true
59
backtick 119 17 17 byobu-status wifi_quality
60
backtick 120 9999999 9999999 byobu-status date
61
backtick 121 9999999 9999999 byobu-status time
62
backtick 122 127 127 byobu-status ip_address
63
backtick 123 13 13 byobu-status disk
64
backtick 124 9999999 9999999 true
65
backtick 125 19 19 byobu-status cpu_temp
66
backtick 126 9999999 9999999 true
67
backtick 127 5 5 byobu-status mail
68
backtick 128 23 23 byobu-status fan_speed
69
backtick 129 67 67 byobu-status apport
70
backtick 130 5 5 byobu-status custom
71
backtick 131 53 53 byobu-status services
73
hardstatus alwayslastline
75
# Turns off alternate screen switching in xterms,
76
# so that text in screen will go into the xterm's scrollback buffer:
77
termcapinfo xterm* ti@:te@
80
# Enable 256 color terminal
82
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
92
# Maintain SSH_AUTH_SOCK link
93
setenv SSH_AUTH_SOCK /var/run/screen/S-$USER/byobu.ssh-agent
95
source $HOME/.byobu/keybindings
97
# Window tabs, second to last line
98
caption always "%12`%?%-Lw%50L>%?%{=r}%{+u}%n*%f %t%?(%u)%?%{-}%12`%?%+Lw%?%11` %=%12`%110`%109`%122`%111`%10`%<"
100
# Status string, last line
101
hardstatus string '%99`%{-}%{=r}%12` %100`%112`%= %130`%102`%101`%129`%131`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%106`%104`%103`%105`%107`%123`%120`%121`'
103
# NOTE: Older version of screen have an arbitrary limit of only being able
104
# to change colors 16 times in this 'hardstatus string'.
105
# Ubuntu (fixed in Jaunty):
106
# * https://bugs.launchpad.net/bugs/315871
108
# * http://savannah.gnu.org/bugs/?22146