* usr/lib/byobu/.notify_osd, usr/share/byobu/keybindings/f-keys,

usr/share/byobu/profiles/common: LP: #776742, #776740
  - set msgwait and msginwait to both 0, to turn down the verbosity of
    screen's messaging, and speed up some byobu operations
  - improve scrollback (alt-pgup and alt-pgdn) by disabling screen's
    status message updates about 'copy mode', etc.
  - speed up the printscreen functionality
  - when running printscreen, open the result with the user's default
    viewer in a new window entitled PRINTSCREEN
This commit is contained in:
Dustin Kirkland 2011-05-05 21:00:48 -04:00
commit 7aa25835ea
4 changed files with 18 additions and 4 deletions

9
debian/changelog vendored
View file

@ -21,6 +21,15 @@ byobu (3.35c) unreleased; urgency=low
- note that this commit does, however, revert the fix for an older bug
* usr/share/byobu/keybindings/f-keys:
- fix regression in rename F8 functionality, use <home> key
* usr/lib/byobu/.notify_osd, usr/share/byobu/keybindings/f-keys,
usr/share/byobu/profiles/common: LP: #776742, #776740
- set msgwait and msginwait to both 0, to turn down the verbosity of
screen's messaging, and speed up some byobu operations
- improve scrollback (alt-pgup and alt-pgdn) by disabling screen's
status message updates about 'copy mode', etc.
- speed up the printscreen functionality
- when running printscreen, open the result with the user's default
viewer in a new window entitled PRINTSCREEN
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 03 May 2011 12:11:10 -0500

View file

@ -21,6 +21,7 @@
$/ = "\n\n";
$PKG = "byobu";
$sleep = 5;
while (<STDIN>) {
# Ensure that the notify_osd indicator is enabled
my $skip = 0;
@ -40,5 +41,8 @@ while (<STDIN>) {
$msg =~ s/\s+/ /g; # collapse multi-whitespace into one
$msg =~ s/\s+$//g; # strip trailing whitespace
$msg =~ s/^\s+//g; # strip leading whitespace
system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "msgwait", "$sleep");
system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "echo", "[$msg]");
sleep($sleep);
system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "msgwait", "0");
}

View file

@ -44,7 +44,7 @@ bind $ screen -t status 0 byobu-status-detail # F12 $ | show detailed status
bind @ screen -t config 0 byobu-config # F12 @ | Configuration
bind R process r # F12 R | Reload profile
register s "\020[g G$>^h" # Goes with \020~ definition
bind ~ eval 'process s' 'exec sed -i -e "/./,/^$/!d" /var/run/screen/S-$USER/byobu-exchange' 'echo "See: /var/run/screen/S-$USER/byobu-exchange"' # F12 ~ | write the buffer to file
bind ~ eval 'process s' 'exec sed -i -e "/./,/^$/!d" /var/run/screen/S-$USER/printscreen' 'screen -t PRINTSCREEN view /var/run/screen/S-$USER/printscreen' # F12 ~ | write the buffer to file, open in a new window
# Hotkeys for splits (gnome-terminal)
bindkey "^[O1;2Q" eval 'split' 'focus down' 'next' 'focus up' # shift-F2 | horizontal split
@ -64,9 +64,9 @@ bindkey "^[[32~" remove # shift-F6 | kill this split
# Make it more logical how to enter scrollback
register p "^[[5~"
bindkey "^[[5;3~" eval 'copy' 'process p' # alt-pageup | scrollback
bindkey "^[[5;3~" eval 'msgwait 0' 'msgminwait 0' 'copy' 'process p' # alt-pageup | scrollback
register n "^[[6~"
bindkey "^[[6;3~" eval 'copy' 'process n' # alt-pagedn | scrollback
bindkey "^[[6;3~" eval 'msgwait 0' 'msgminwait 0' 'copy' 'process n' # alt-pagedn | scrollback
# Make socket reconnection a little easier
bindkey "^[[15;5~" eval 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh sockets

View file

@ -23,7 +23,8 @@
# Now, let's override with our customizations
startup_message off
vbell off
msgwait 5
msgwait 0
msgminwait 0
defutf8 on
deflogin on