From 6546a80c32fc594fd76c179e9b4de1e92e804bf0 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 21 Apr 2009 16:45:45 -0500 Subject: [PATCH] screen: just touch the windows config file since F5 reloads reopens all windows; launch with motd+shell if Signed-off-by: Dustin Kirkland --- debian/changelog | 8 +++++--- screen | 8 ++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9839bf1c..7e3765bb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -screen-profiles (1.48-0ubuntu1) jaunty; urgency=low +screen-profiles (1.48) unreleased; urgency=low Drop the distro name in generated profiles * debian/install: fix installation of profiles @@ -14,7 +14,9 @@ screen-profiles (1.48-0ubuntu1) jaunty; urgency=low * screen: default to the light profile, if unspecified; this should be acceptable now that the F9:Menu prompt is always shown, and from there, - any user can easily change their profile + any user can easily change their profile; just touch the windows config + file since F5 reloads reopens all windows; launch with motd+shell if + no args to screen are specified * keybindings/common: don't force users to name a window on F2 window creation * debian/postrm: remove the || true on the diversion removal, per Debian @@ -26,7 +28,7 @@ screen-profiles (1.48-0ubuntu1) jaunty; urgency=low * screen-profiles-status.1, debian/rules: manpage added * screen-profiles-export: randomly generate tarball name, if unspecified - -- Dustin Kirkland Tue, 21 Apr 2009 16:14:37 -0500 + -- Dustin Kirkland Tue, 21 Apr 2009 16:45:35 -0500 screen-profiles (1.47-0ubuntu1) jaunty; urgency=low diff --git a/screen b/screen index 24fec1ef..7b39d7c1 100755 --- a/screen +++ b/screen @@ -67,10 +67,14 @@ fi [ -s "$HOME/.screen-profiles/keybindings" ] || echo "source /usr/share/screen-profiles/keybindings/common" > "$HOME/.screen-profiles/keybindings" # Ensure that their default windows are seeded -[ -r "$HOME/.screen-profiles/windows" ] || cp "/usr/share/screen-profiles/windows/common" "$HOME/.screen-profiles/windows" +[ -r "$HOME/.screen-profiles/windows" ] || touch "$HOME/.screen-profiles/windows" # Ensure that the user's .screenrc at least exists [ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc" # Now let's execute screen! -exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" "$@" +if [ -z "$@" ]; then + exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" -t shell /usr/bin/motd+shell +else + exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" "$@" +fi