mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* byobu-config, windows/common: add some examples in the common windows
file, all disabled by default; in byobu-config, if the user's windows file is empty, show the examples in the default window management panel Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
77d3dffc31
commit
f08be48491
3 changed files with 22 additions and 9 deletions
18
byobu-config
18
byobu-config
|
@ -78,9 +78,9 @@ def terminal_size(): ### decide on *some* terminal size
|
||||||
|
|
||||||
def menu(screen, size, isInstalled):
|
def menu(screen, size, isInstalled):
|
||||||
if isInstalled:
|
if isInstalled:
|
||||||
installtext=_("Do not launch Byobu by default at login")
|
installtext=_("Byobu currently launches at login (toggle)")
|
||||||
else:
|
else:
|
||||||
installtext=_("Launch Byobu by default at login")
|
installtext=_("Byobu currently does not launch at login (toggle)")
|
||||||
|
|
||||||
|
|
||||||
li = Listbox(height = 8, width = 60, returnExit = 1)
|
li = Listbox(height = 8, width = 60, returnExit = 1)
|
||||||
|
@ -234,7 +234,13 @@ def appendwindow(win):
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def readwindows():
|
def readwindows():
|
||||||
f=open(HOME+'/.'+PKG+'/windows', 'r')
|
if not os.path.isfile(HOME+'/.'+PKG+'/windows'):
|
||||||
|
windowsfile=SHARE+'/windows/common'
|
||||||
|
elif os.path.getsize(HOME+'/.'+PKG+'/windows') == 0:
|
||||||
|
windowsfile=SHARE+'/windows/common'
|
||||||
|
else:
|
||||||
|
windowsfile=HOME+'/.'+PKG+'/windows'
|
||||||
|
f=open(windowsfile)
|
||||||
try:
|
try:
|
||||||
li=[]
|
li=[]
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
|
@ -369,7 +375,7 @@ def defaultwindows(screen, size):
|
||||||
r.append(win[1],count,selected=win[0])
|
r.append(win[1],count,selected=win[0])
|
||||||
count=count+1
|
count=count+1
|
||||||
|
|
||||||
bb = ButtonBar(screen, ((_("Apply"), "apply"), (_("Cancel"), "cancel"), ESC), compact = 1)
|
bb = ButtonBar(screen, ((_("Apply"), "apply"), (_("Cancel"), "cancel", ESC)), compact = 1)
|
||||||
|
|
||||||
g = GridForm(screen, _("Select window(s) to create by default:"), 2, 4 )
|
g = GridForm(screen, _("Select window(s) to create by default:"), 2, 4 )
|
||||||
g.add(rl, 0, 0, anchorLeft=1, anchorTop=1, padding=(4,0,0,1))
|
g.add(rl, 0, 0, anchorLeft=1, anchorTop=1, padding=(4,0,0,1))
|
||||||
|
@ -391,7 +397,7 @@ def install(screen, size, isInstalled):
|
||||||
if not isInstalled:
|
if not isInstalled:
|
||||||
out = commands.getoutput("bash /usr/share/"+PKG+"/screen-launcher-install")
|
out = commands.getoutput("bash /usr/share/"+PKG+"/screen-launcher-install")
|
||||||
if out == "":
|
if out == "":
|
||||||
out = _("Screen will be launched automatically next time you login.")
|
out = _("Byobu will be launched automatically next time you login.")
|
||||||
|
|
||||||
button = messagebox(screen, 60, 2, "Message", out, \
|
button = messagebox(screen, 60, 2, "Message", out, \
|
||||||
buttons=((_("Menu"), )))
|
buttons=((_("Menu"), )))
|
||||||
|
@ -399,7 +405,7 @@ def install(screen, size, isInstalled):
|
||||||
else:
|
else:
|
||||||
out = commands.getoutput("bash /usr/share/"+PKG+"/screen-launcher-uninstall")
|
out = commands.getoutput("bash /usr/share/"+PKG+"/screen-launcher-uninstall")
|
||||||
if out == "":
|
if out == "":
|
||||||
out = _("Screen will not be used next time you login.")
|
out = _("Byobu will not be used next time you login.")
|
||||||
|
|
||||||
button = messagebox(screen, 60, 2, _("Message"), out, \
|
button = messagebox(screen, 60, 2, _("Message"), out, \
|
||||||
buttons=((_("Menu"), )))
|
buttons=((_("Menu"), )))
|
||||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -25,11 +25,15 @@ byobu (2.13) unreleased; urgency=low
|
||||||
reload-required file when making changes
|
reload-required file when making changes
|
||||||
* byobu-janitor: add fix for the collapsed disk* and network* status
|
* byobu-janitor: add fix for the collapsed disk* and network* status
|
||||||
items
|
items
|
||||||
|
* byobu-config, windows/common: add some examples in the common windows
|
||||||
|
file, all disabled by default; in byobu-config, if the user's windows
|
||||||
|
file is empty, show the examples in the default window management
|
||||||
|
panel
|
||||||
|
|
||||||
[ Ciemon Dunville ]
|
[ Ciemon Dunville ]
|
||||||
* byobu.1: reflect the keybinding toggle change to Ctrl-a-!
|
* byobu.1: reflect the keybinding toggle change to Ctrl-a-!
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 21 Jun 2009 12:11:15 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 21 Jun 2009 12:12:00 -0500
|
||||||
|
|
||||||
byobu (2.12-0ubuntu1) karmic; urgency=low
|
byobu (2.12-0ubuntu1) karmic; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
# Default windows
|
# Default windows examples
|
||||||
screen -t shell 0 motd+shell
|
#screen -t notify-osd -M tail -f $HOME/.cache/notify-osd.log
|
||||||
|
#screen -t top top
|
||||||
|
#screen -t web elinks
|
||||||
|
#screen -t shell motd+shell
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue