mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* byobu-config, byobu-janitor, byobu-select-profile, debian/install,
debian/rules, po/POTFILES.sh, rpm/byobu.spec: rename select-screen-profile to byobu-select-profile; fits our namespace better Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
40855109e5
commit
e1c5396b69
9 changed files with 15 additions and 12 deletions
|
@ -136,7 +136,7 @@ def help(screen, size, config):
|
|||
def profile(screen, size):
|
||||
li = Listbox(height = 8, width = 60, scroll = 1, returnExit = 1)
|
||||
|
||||
for choice in commands.getoutput('select-screen-profile -l').splitlines():
|
||||
for choice in commands.getoutput('byobu-select-profile -l').splitlines():
|
||||
li.append(choice, choice)
|
||||
|
||||
bb = ButtonBar(screen, ((_("Apply"), "apply"), (_("Cancel"), "cancel", ESC)), compact = 1)
|
||||
|
@ -146,7 +146,7 @@ def profile(screen, size):
|
|||
g.add(bb, 0, 1, padding=(1,1,0,0))
|
||||
|
||||
if bb.buttonPressed(g.runOnce()) != "cancel":
|
||||
commands.getoutput('select-screen-profile --set %s' % li.current())
|
||||
commands.getoutput('byobu-select-profile --set %s' % li.current())
|
||||
reload_required()
|
||||
button = messagebox(screen, 60, 4, _("Message"), _(RELOAD), \
|
||||
buttons=((_("Menu"), )))
|
||||
|
|
|
@ -45,14 +45,14 @@ if [ -d "$HOME/.$OLDPKG" ] && [ ! -e "$HOME/.$PKG" ]; then
|
|||
# Determine the chosen profile color
|
||||
profile=`readlink "$PROFILE" | sed "s:^.*-::"`
|
||||
# Try to set that color, if it exists, otherwise set to default
|
||||
select-screen-profile -s "$profile" >/dev/null 2>&1 || select-screen-profile -s "$DEFAULT_PROFILE" >/dev/null 2>&1
|
||||
byobu-select-profile -s "$profile" >/dev/null 2>&1 || byobu-select-profile -s "$DEFAULT_PROFILE" >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Affects: First runs with no configuration
|
||||
# Seed the configuration
|
||||
[ -d "$HOME/.$PKG" ] || mkdir -p "$HOME/.$PKG"
|
||||
[ -r "$PROFILE" ] || select-screen-profile -s "$DEFAULT_PROFILE" >/dev/null 2>&1
|
||||
[ -r "$PROFILE" ] || byobu-select-profile -s "$DEFAULT_PROFILE" >/dev/null 2>&1
|
||||
[ -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/windows" ] || touch "$HOME/.$PKG/windows"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -e
|
||||
#
|
||||
# select-screen-profile
|
||||
# byobu-select-profile
|
||||
# Copyright (C) 2008 Canonical Ltd.
|
||||
#
|
||||
# Authors: Dustin Kirkland <kirkland@canonical.com>
|
||||
|
@ -28,7 +28,7 @@ TEXTDOMAIN="$PKG"
|
|||
|
||||
usage () {
|
||||
cat <<EOT
|
||||
usage: select-screen-profile [(-l|--list)][(-h|--help)][(-s|--set) PROFILE]
|
||||
usage: byobu-select-profile [(-l|--list)][(-h|--help)][(-s|--set) PROFILE]
|
||||
-l,--list list available profiles
|
||||
-s,--set PROFILE set profile
|
||||
-h,--help this help
|
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -1,8 +1,11 @@
|
|||
byobu (2.16) unreleased; urgency=low
|
||||
|
||||
* byobu-config, doc/help.txt: update the verbage of some text
|
||||
* byobu-config, byobu-janitor, byobu-select-profile, debian/install,
|
||||
debian/rules, po/POTFILES.sh, rpm/byobu.spec: rename select-screen-profile
|
||||
to byobu-select-profile; fits our namespace better
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 23 Jun 2009 02:05:56 -0500
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 23 Jun 2009 02:21:01 -0500
|
||||
|
||||
byobu (2.15-0ubuntu1) karmic; urgency=low
|
||||
|
||||
|
|
2
debian/install
vendored
2
debian/install
vendored
|
@ -9,7 +9,7 @@ profiles/light usr/share/byobu/profiles
|
|||
keybindings/* usr/share/byobu/keybindings
|
||||
statusrc etc/byobu
|
||||
windows/common usr/share/byobu/windows
|
||||
select-screen-profile usr/bin
|
||||
byobu-select-profile usr/bin
|
||||
byobu usr/bin
|
||||
byobu-config usr/bin
|
||||
byobu-status usr/bin
|
||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -59,7 +59,7 @@ binary-indep: build install
|
|||
dh_testdir -i
|
||||
dh_testroot -i
|
||||
dh_installdocs -X.bzr -i
|
||||
dh_installman -i screen-launcher.1 byobu.1 byobu-config.1 select-screen-profile.1 motd+shell.1 byobu-export.1 byobu-status.1 byobu-status-detail.1
|
||||
dh_installman -i screen-launcher.1 byobu.1 byobu-config.1 byobu-select-profile.1 motd+shell.1 byobu-export.1 byobu-status.1 byobu-status-detail.1
|
||||
dh_installchangelogs -i
|
||||
dh_installdebconf -i
|
||||
dh_compress -i
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
# Please keep this file sorted alphabetically.
|
||||
bin/menu
|
||||
byobu-export
|
||||
select-screen-profile
|
||||
byobu-select-profile
|
||||
|
|
|
@ -69,7 +69,7 @@ cp -ar profiles/light ${RPM_BUILD_ROOT}/usr/share/byobu/profiles
|
|||
cp -ar keybindings/common ${RPM_BUILD_ROOT}/usr/share/byobu/keybindings
|
||||
cp -ar keybindings/none ${RPM_BUILD_ROOT}/usr/share/byobu/keybindings
|
||||
cp -ar windows/common ${RPM_BUILD_ROOT}/usr/share/byobu/windows
|
||||
cp -ar select-screen-profile ${RPM_BUILD_ROOT}/usr/bin
|
||||
cp -ar byobu-select-profile ${RPM_BUILD_ROOT}/usr/bin
|
||||
cp -ar byobu ${RPM_BUILD_ROOT}/usr/bin
|
||||
cp -ar byobu-config ${RPM_BUILD_ROOT}/usr/bin
|
||||
cp -ar byobu-status ${RPM_BUILD_ROOT}/usr/bin
|
||||
|
@ -95,7 +95,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
/usr/bin/byobu-export
|
||||
/usr/bin/byobu-status
|
||||
/usr/bin/byobu-status-detail
|
||||
/usr/bin/select-screen-profile
|
||||
/usr/bin/byobu-select-profile
|
||||
/usr/lib/byobu/arch
|
||||
/usr/lib/byobu/battery
|
||||
/usr/lib/byobu/cpu_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue