~ubuntu-branches/debian/wheezy/byobu/wheezy

« back to all changes in this revision

Viewing changes to usr/share/byobu/profiles/common

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Kern
  • Date: 2010-06-28 18:04:16 UTC
  • mfrom: (0.5.1 upstream) (0.3.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100628180416-3xgfpga8cvp872ye
Upload to Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
5
#
 
6
#    Copyright (C) 2008 Canonical Ltd.
 
7
#
 
8
#    Authors: Dustin Kirkland <kirkland@canonical.com>
 
9
#
 
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.
 
13
#
 
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.
 
18
#
 
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
###############################################################################
 
22
 
 
23
# Now, let's override with our customizations
 
24
startup_message off
 
25
vbell off
 
26
msgwait 1
 
27
defutf8 on
 
28
 
 
29
# Define status commands
 
30
#   Use prime number intervals, to decrease collisions, which
 
31
#   yields some less expensive status updates.
 
32
#   ~86000 ~1 day
 
33
#   ~600   ~10 minutes
 
34
#   ~180   ~3 minutes
 
35
#   ~60    ~1 minute
 
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
 
72
backtick 132    11      11              byobu-status time_utc
 
73
backtick 133    3       3               byobu-status disk_io
 
74
backtick 134    613     613             byobu-status rcs_cost
 
75
 
 
76
hardstatus alwayslastline
 
77
 
 
78
# Turns off alternate screen switching in xterms,
 
79
# so that text in screen will go into the xterm's scrollback buffer:
 
80
termcapinfo xterm* ti@:te@
 
81
altscreen on
 
82
 
 
83
# Enable 256 color terminal
 
84
attrcolor b ".I"
 
85
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
 
86
defbce "on"
 
87
 
 
88
# Log 10000 lines
 
89
defscrollback 10000
 
90
 
 
91
# Set per-user screen-exchange
 
92
bufferfile /var/run/screen/S-$USER/byobu-exchange
 
93
compacthist on
 
94
 
 
95
# Monitor windows
 
96
defmonitor on
 
97
activity ""
 
98
 
 
99
# Maintain SSH_AUTH_SOCK link
 
100
setenv SSH_AUTH_SOCK /var/run/screen/S-$USER/byobu.ssh-agent
 
101
 
 
102
source $HOME/.byobu/keybindings
 
103
 
 
104
# Window tabs, second to last line
 
105
caption always "%12`%?%-Lw%50L>%?%{=r}%n*%f %t%?(%u)%?%{-}%12`%?%+Lw%?%11` %=%12`%110`%109`%122`%111`%10`%<"
 
106
 
 
107
# Status string, last line
 
108
hardstatus string '%99`%{-}%{=r}%12` %100`%112`%= %130`%102`%101`%129`%131`%127`%114`%115`%108`%134`%128`%125`%126`%113`%119`%133`%117`%116`%106`%104`%103`%105`%107`%123`%132`%120`%121`'
 
109
 
 
110
# NOTE: Older version of screen have an arbitrary limit of only being able
 
111
# to change colors 16 times in this 'hardstatus string'.
 
112
# Ubuntu (fixed in Jaunty):
 
113
#  * https://bugs.launchpad.net/bugs/315871
 
114
# Upstream:
 
115
#  * http://savannah.gnu.org/bugs/?22146