mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
* byobu-config, statusrc: enable whoami, hostname, ip_address by default;
it seems I almost *always* turn these on, seem useful; re-disable if there are noisy complaints * byobu-janitor, statusrc: seed the ~/.byobu/status file with the default values, making it easier for users to customize themselves
This commit is contained in:
parent
33078b953b
commit
e6bcfba747
4 changed files with 24 additions and 8 deletions
|
@ -280,8 +280,8 @@ def readstatus():
|
||||||
status["disk"]=0
|
status["disk"]=0
|
||||||
status["ec2_cost"]=0
|
status["ec2_cost"]=0
|
||||||
status["fan_speed"]=0
|
status["fan_speed"]=0
|
||||||
status["hostname"]=0
|
status["hostname"]=1
|
||||||
status["ip_address"]=0
|
status["ip_address"]=1
|
||||||
status["load_average"]=1
|
status["load_average"]=1
|
||||||
status["logo"]=1
|
status["logo"]=1
|
||||||
status["mail"]=0
|
status["mail"]=0
|
||||||
|
@ -298,7 +298,7 @@ def readstatus():
|
||||||
status["users"]=0
|
status["users"]=0
|
||||||
status["updates_available"]=1
|
status["updates_available"]=1
|
||||||
status["uptime"]=1
|
status["uptime"]=1
|
||||||
status["whoami"]=0
|
status["whoami"]=1
|
||||||
status["wifi_quality"]=0
|
status["wifi_quality"]=0
|
||||||
if os.path.exists(HOME+'/.'+PKG+'/status'):
|
if os.path.exists(HOME+'/.'+PKG+'/status'):
|
||||||
f=open(HOME+'/.'+PKG+'/status', 'r')
|
f=open(HOME+'/.'+PKG+'/status', 'r')
|
||||||
|
|
|
@ -59,7 +59,7 @@ fi
|
||||||
# Affects: First runs with no configuration
|
# Affects: First runs with no configuration
|
||||||
# Seed the configuration
|
# Seed the configuration
|
||||||
[ -d "$HOME/.$PKG" ] || mkdir -p "$HOME/.$PKG"
|
[ -d "$HOME/.$PKG" ] || mkdir -p "$HOME/.$PKG"
|
||||||
byobu-select-profile -b W -f k >/dev/null 2>&1
|
[ -r "$HOME/.$PKG/color" ] || byobu-select-profile -b W -f k >/dev/null 2>&1
|
||||||
[ -r "$HOME/.$PKG/profile" ] || ln -sf /usr/share/$PKG/profiles/common "$PROFILE"
|
[ -r "$HOME/.$PKG/profile" ] || ln -sf /usr/share/$PKG/profiles/common "$PROFILE"
|
||||||
|
|
||||||
# Affects: Symlinks pointing to color profiles
|
# Affects: Symlinks pointing to color profiles
|
||||||
|
@ -92,7 +92,7 @@ if [ -h "$PROFILE" ] && \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -s "$HOME/.$PKG/keybindings" ] || echo "source /usr/share/$PKG/keybindings/common" > "$HOME/.$PKG/keybindings"
|
[ -s "$HOME/.$PKG/keybindings" ] || echo "source /usr/share/$PKG/keybindings/common" > "$HOME/.$PKG/keybindings"
|
||||||
[ -r "$HOME/.$PKG/status" ] || touch "$HOME/.$PKG/status"
|
[ -r "$HOME/.$PKG/status" ] || $(grep -A 999999 BEGIN_CUT_HERE /etc/$PKG/statusrc | grep -B 999999 END_CUT_HERE | grep -v CUT > "$HOME/.$PKG/status")
|
||||||
[ -r "$HOME/.$PKG/windows" ] || touch "$HOME/.$PKG/windows"
|
[ -r "$HOME/.$PKG/windows" ] || touch "$HOME/.$PKG/windows"
|
||||||
[ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
|
[ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
|
||||||
|
|
||||||
|
|
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -40,6 +40,11 @@ byobu (2.40) unreleased; urgency=low
|
||||||
documentation
|
documentation
|
||||||
* debian/profile: establish symlinks for the color profiles to ensure
|
* debian/profile: establish symlinks for the color profiles to ensure
|
||||||
smooth upgrades; all point to the common profile now
|
smooth upgrades; all point to the common profile now
|
||||||
|
* byobu-config, statusrc: enable whoami, hostname, ip_address by default;
|
||||||
|
it seems I almost *always* turn these on, seem useful; re-disable if
|
||||||
|
there are noisy complaints
|
||||||
|
* byobu-janitor, statusrc: seed the ~/.byobu/status file with the
|
||||||
|
default values, making it easier for users to customize themselves
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600
|
||||||
|
|
||||||
|
|
17
statusrc
17
statusrc
|
@ -18,6 +18,8 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# BEGIN_CUT_HERE
|
||||||
|
# Toggle status notifications
|
||||||
apport=0
|
apport=0
|
||||||
arch=0
|
arch=0
|
||||||
battery=0
|
battery=0
|
||||||
|
@ -27,8 +29,8 @@ date=1
|
||||||
disk=0
|
disk=0
|
||||||
ec2_cost=0
|
ec2_cost=0
|
||||||
fan_speed=0
|
fan_speed=0
|
||||||
hostname=0
|
hostname=1
|
||||||
ip_address=0
|
ip_address=1
|
||||||
load_average=1
|
load_average=1
|
||||||
logo=1
|
logo=1
|
||||||
mail=0
|
mail=0
|
||||||
|
@ -45,9 +47,18 @@ time=1
|
||||||
users=0
|
users=0
|
||||||
updates_available=1
|
updates_available=1
|
||||||
uptime=1
|
uptime=1
|
||||||
whoami=0
|
whoami=1
|
||||||
wifi_quality=0
|
wifi_quality=0
|
||||||
|
|
||||||
|
# Configurations that you can override; if you leave these commented out,
|
||||||
|
# Byobu will auto-detect them.
|
||||||
|
#LOGO="\o/"
|
||||||
|
#MONITORED_DISK=/
|
||||||
|
#MONITORED_INTERFACE=eth0
|
||||||
|
#MONITORED_TEMP=/proc/acpi/thermal_zone/THM0/temperature
|
||||||
|
#DISTRO=Ubuntu
|
||||||
|
# END_CUT_HERE
|
||||||
|
|
||||||
# Define colors
|
# Define colors
|
||||||
ESC="\005"
|
ESC="\005"
|
||||||
UNDO="$ESC{-}"
|
UNDO="$ESC{-}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue