mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
screen-profiles (1.34-0ubuntu1) jaunty; urgency=low
Fixes for Bug #339186 * screen-profiles: remove welcome screen toggle support; collapsed into a tooltip on the status line * windows/common: remove screen-profiles default window; now launched from tooltip * profiles/profile.skel: add Menu:F9 tool tip to far right of window bar -- Dustin Kirkland <kirkland@ubuntu.com>Sat, 07 Mar 2009 08:49:22 -0600
This commit is contained in:
parent
7c79086c17
commit
3442c88de7
5 changed files with 54 additions and 111 deletions
11
debian/changelog
vendored
11
debian/changelog
vendored
|
@ -1,8 +1,13 @@
|
|||
screen-profiles (1.34) unreleased; urgency=low
|
||||
screen-profiles (1.34-0ubuntu1) jaunty; urgency=low
|
||||
|
||||
*
|
||||
Fixes for LP: #339186
|
||||
* screen-profiles: remove welcome screen toggle support; collapsed into a
|
||||
tooltip on the status line
|
||||
* windows/common: remove screen-profiles default window; now launched from
|
||||
tooltip
|
||||
* profiles/profile.skel: add Menu:F9 tool tip to far right of window bar
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 07 Mar 2009 01:12:29 -0600
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 07 Mar 2009 08:49:22 -0600
|
||||
|
||||
screen-profiles (1.33-0ubuntu1) jaunty; urgency=low
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-02-28 11:55-0600\n"
|
||||
"POT-Creation-Date: 2009-03-07 08:47-0600\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -16,151 +16,127 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: screen-profiles:72
|
||||
#: screen-profiles:71
|
||||
msgid "Remove screen by default at login"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:74
|
||||
#: screen-profiles:73
|
||||
msgid "Install screen by default at login"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:76
|
||||
msgid "Launch Screen Profiles Configuration on startup"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:78
|
||||
msgid "Do not launch Screen Profiles Configuration on startup"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:82
|
||||
#: screen-profiles:77
|
||||
msgid "Help"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:83
|
||||
#: screen-profiles:78
|
||||
msgid "Change screen profile"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:84
|
||||
#: screen-profiles:79
|
||||
msgid "Change keybinding set"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:85
|
||||
#: screen-profiles:80
|
||||
msgid "Change escape sequence"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:86
|
||||
#: screen-profiles:81
|
||||
msgid "Create new window(s)"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:87
|
||||
#: screen-profiles:82
|
||||
msgid "Manage default windows"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:90 screen-profiles:103
|
||||
msgid "Okay"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:90
|
||||
#: screen-profiles:84
|
||||
msgid "Exit"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:92 screen-profiles:422
|
||||
msgid " Screen Profiles Configuration"
|
||||
#: screen-profiles:86 screen-profiles:391
|
||||
msgid " Screen Profiles Configuration Menu"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:103 screen-profiles:139 screen-profiles:155
|
||||
#: screen-profiles:190 screen-profiles:279 screen-profiles:384
|
||||
#: screen-profiles:97
|
||||
msgid "Okay"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:97 screen-profiles:133 screen-profiles:149
|
||||
#: screen-profiles:184 screen-profiles:274 screen-profiles:352
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:121 screen-profiles:148 screen-profiles:162
|
||||
#: screen-profiles:315 screen-profiles:331 screen-profiles:339
|
||||
#: screen-profiles:411
|
||||
#: screen-profiles:115 screen-profiles:142 screen-profiles:156
|
||||
#: screen-profiles:299 screen-profiles:307 screen-profiles:380
|
||||
msgid "Menu"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:122
|
||||
#: screen-profiles:116
|
||||
msgid "Screen Profiles Help"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:139 screen-profiles:155
|
||||
#: screen-profiles:133 screen-profiles:149 screen-profiles:184
|
||||
#: screen-profiles:274 screen-profiles:352
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:141
|
||||
#: screen-profiles:135
|
||||
msgid "Which profile would you like to use?"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:147 screen-profiles:161 screen-profiles:338
|
||||
#: screen-profiles:409
|
||||
#: screen-profiles:141 screen-profiles:155 screen-profiles:306
|
||||
#: screen-profiles:378
|
||||
msgid "Message"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:156
|
||||
#: screen-profiles:150
|
||||
msgid "Which set of keybindings would you like to use?"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:170
|
||||
#: screen-profiles:164
|
||||
msgid "Title: "
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:172
|
||||
#: screen-profiles:166
|
||||
msgid "Command: "
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:174
|
||||
#: screen-profiles:168
|
||||
msgid "Presets: "
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:188
|
||||
#: screen-profiles:182
|
||||
msgid "Add to default windows"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:190
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:191
|
||||
#: screen-profiles:186
|
||||
msgid "Create new window(s):"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:271
|
||||
#: screen-profiles:266
|
||||
msgid "Windows:"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:279 screen-profiles:384
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:281
|
||||
#: screen-profiles:276
|
||||
msgid "Select window(s) to create by default:"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:308
|
||||
msgid "Screen Profiles Configuration will be launched automatically."
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:312
|
||||
msgid "Screen Profiles Configuration will be not launched automatically."
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:328
|
||||
#: screen-profiles:296
|
||||
msgid "Screen will be launched automatically next time you login."
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:336
|
||||
#: screen-profiles:304
|
||||
msgid "Screen will not be used next time you login."
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:383
|
||||
#: screen-profiles:351
|
||||
msgid "Escape key: ctrl-"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:385
|
||||
#: screen-profiles:354
|
||||
msgid "Change escape sequence:"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles:423
|
||||
#: screen-profiles:392
|
||||
msgid "<Tab>/<Alt-Tab> between elements | <Return> Validates"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
source /usr/share/screen-profiles/profiles/common
|
||||
|
||||
# Window tabs, second to last line
|
||||
caption always "%{kW}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kW}%?%+Lw%? %= %{=b Wk}%110`@%109`"
|
||||
caption always "%{kW}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kW}%?%+Lw%? %= %{=b Wk}Menu:<F9>"
|
||||
|
||||
# Status string, last line
|
||||
hardstatus string '__LOGO__%{=b Wk} %100` %{= Wk} %= %{=b bW}%102`%{= Wk} %{=b rW}%101`%{= Wk} %{= Wg}%108`%{= Wk} %{= Yk}%106`%{= Wk} %{= Wk}%104`%{=b cW}%103`%{= Wk} %{=b gW}%105`,%107`%{= Wk} %Y-%m-%d %0c:%s'
|
||||
|
|
|
@ -30,7 +30,6 @@ HOME=os.getenv("HOME")
|
|||
SHARE='/usr/share/screen-profiles'
|
||||
DOC='/usr/share/doc/screen-profiles'
|
||||
DEF_ESC="A"
|
||||
WELCOME = "screen -t welcome 1 screen-profiles"
|
||||
RELOAD = "If you are using the default set of keybindings, press\n<F5><enter> to activate these changes.\n\nOtherwise, exit this screen session and start a new one."
|
||||
|
||||
gettext.bindtextdomain('screen-profiles', SHARE+'/po')
|
||||
|
@ -67,18 +66,14 @@ def terminal_size(): ### decide on *some* terminal size
|
|||
cr = (25, 80)
|
||||
return int(cr[1]-5), int(cr[0]-5) # reverse rows, cols
|
||||
|
||||
def menu(screen, size, isInstalled, welcome):
|
||||
def menu(screen, size, isInstalled):
|
||||
if isInstalled:
|
||||
installtext=_("Remove screen by default at login")
|
||||
else:
|
||||
installtext=_("Install screen by default at login")
|
||||
if welcome:
|
||||
welcometext=_("Launch Screen Profiles Configuration on startup")
|
||||
else:
|
||||
welcometext=_("Do not launch Screen Profiles Configuration on startup")
|
||||
|
||||
|
||||
li = Listbox(height = 8, width = 60, returnExit = 1)
|
||||
li = Listbox(height = 7, width = 60, returnExit = 1)
|
||||
li.append(_("Help"), 1)
|
||||
li.append(_("Change screen profile"), 2)
|
||||
li.append(_("Change keybinding set"), 3)
|
||||
|
@ -86,10 +81,9 @@ def menu(screen, size, isInstalled, welcome):
|
|||
li.append(_("Create new window(s)"), 5)
|
||||
li.append(_("Manage default windows"), 6)
|
||||
li.append(installtext, 7)
|
||||
li.append(welcometext, 8)
|
||||
bb = ButtonBar(screen, ((_("Exit"), )), compact = 1)
|
||||
|
||||
g = GridForm(screen, _(" Screen Profiles Configuration"), 1, 2)
|
||||
g = GridForm(screen, _(" Screen Profiles Configuration Menu"), 1, 2)
|
||||
g.add(li, 0, 0, padding=(4,2,4,2))
|
||||
g.add(bb, 0, 1, padding=(1,1,0,0))
|
||||
|
||||
|
@ -295,33 +289,6 @@ def defaultwindows(screen, size):
|
|||
|
||||
return 100
|
||||
|
||||
def welcomeOn():
|
||||
path=HOME+'/.screen-profiles/windows'
|
||||
line = commands.getoutput("grep '^"+WELCOME+"' "+path)
|
||||
if line == "":
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
||||
def togglewelcome(screen, size, welcome):
|
||||
if welcome:
|
||||
togglewelcomeon()
|
||||
out = _("Screen Profiles Configuration will be launched automatically.")
|
||||
rc = 101
|
||||
else:
|
||||
togglewelcomeoff()
|
||||
out = _("Screen Profiles Configuration will be not launched automatically.")
|
||||
rc = 100
|
||||
button = messagebox(screen, 70, 2, "Message", out, \
|
||||
buttons=((_("Menu"), )))
|
||||
return rc
|
||||
|
||||
def togglewelcomeon():
|
||||
commands.getoutput("sed -i -e 's/^#"+WELCOME+"/"+WELCOME+"/' "+HOME+'/.screen-profiles/windows')
|
||||
|
||||
def togglewelcomeoff():
|
||||
commands.getoutput("sed -i -e 's/^"+WELCOME+"/#"+WELCOME+"/' "+HOME+'/.screen-profiles/windows')
|
||||
|
||||
def install(screen, size, isInstalled):
|
||||
if not isInstalled:
|
||||
out = commands.getoutput("bash /usr/share/screen-profiles/screen-launcher-install")
|
||||
|
@ -421,18 +388,17 @@ def main():
|
|||
|
||||
size = terminal_size()
|
||||
screen = SnackScreen()
|
||||
screen.drawRootText(1,0,_(' Screen Profiles Configuration'))
|
||||
screen.drawRootText(1,0,_(' Screen Profiles Configuration Menu'))
|
||||
screen.pushHelpLine(_('<Tab>/<Alt-Tab> between elements | <Return> Validates'))
|
||||
|
||||
config = SafeConfigParser()
|
||||
|
||||
isInstalled = (commands.getoutput('grep screen-launcher '+(HOME+'/.profile')) != "")
|
||||
welcome = welcomeOn()
|
||||
|
||||
tag = 100
|
||||
|
||||
while tag > 0 :
|
||||
tag = menu(screen, size, isInstalled, welcome)
|
||||
tag = menu(screen, size, isInstalled)
|
||||
if tag == 1:
|
||||
tag = help(screen, size, config)
|
||||
elif tag == 2:
|
||||
|
@ -448,9 +414,6 @@ def main():
|
|||
elif tag == 7:
|
||||
tag = install(screen, size, isInstalled)
|
||||
isInstalled=(tag == 100)
|
||||
elif tag == 8:
|
||||
tag = togglewelcome(screen, size, welcome)
|
||||
welcome=(tag == 100)
|
||||
|
||||
screen.finish()
|
||||
sys.exit(0)
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
# Default windows
|
||||
screen -t shell 2 motd+shell
|
||||
screen -t welcome 1 screen-profiles
|
||||
screen -t shell 0 motd+shell
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue