mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-23 06:36:17 -07:00
* 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:
parent
2c8d3b5277
commit
7aa25835ea
4 changed files with 18 additions and 4 deletions
9
debian/changelog
vendored
9
debian/changelog
vendored
|
@ -21,6 +21,15 @@ byobu (3.35c) unreleased; urgency=low
|
||||||
- note that this commit does, however, revert the fix for an older bug
|
- note that this commit does, however, revert the fix for an older bug
|
||||||
* usr/share/byobu/keybindings/f-keys:
|
* usr/share/byobu/keybindings/f-keys:
|
||||||
- fix regression in rename F8 functionality, use <home> key
|
- 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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 03 May 2011 12:11:10 -0500
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
$/ = "\n\n";
|
$/ = "\n\n";
|
||||||
$PKG = "byobu";
|
$PKG = "byobu";
|
||||||
|
$sleep = 5;
|
||||||
while (<STDIN>) {
|
while (<STDIN>) {
|
||||||
# Ensure that the notify_osd indicator is enabled
|
# Ensure that the notify_osd indicator is enabled
|
||||||
my $skip = 0;
|
my $skip = 0;
|
||||||
|
@ -40,5 +41,8 @@ while (<STDIN>) {
|
||||||
$msg =~ s/\s+/ /g; # collapse multi-whitespace into one
|
$msg =~ s/\s+/ /g; # collapse multi-whitespace into one
|
||||||
$msg =~ s/\s+$//g; # strip trailing whitespace
|
$msg =~ s/\s+$//g; # strip trailing whitespace
|
||||||
$msg =~ s/^\s+//g; # strip leading 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]");
|
system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "echo", "[$msg]");
|
||||||
|
sleep($sleep);
|
||||||
|
system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "msgwait", "0");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 @ screen -t config 0 byobu-config # F12 @ | Configuration
|
||||||
bind R process r # F12 R | Reload profile
|
bind R process r # F12 R | Reload profile
|
||||||
register s "\020[g G$>^h" # Goes with \020~ definition
|
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)
|
# Hotkeys for splits (gnome-terminal)
|
||||||
bindkey "^[O1;2Q" eval 'split' 'focus down' 'next' 'focus up' # shift-F2 | horizontal split
|
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
|
# Make it more logical how to enter scrollback
|
||||||
register p "^[[5~"
|
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~"
|
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
|
# 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
|
bindkey "^[[15;5~" eval 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh sockets
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
# Now, let's override with our customizations
|
# Now, let's override with our customizations
|
||||||
startup_message off
|
startup_message off
|
||||||
vbell off
|
vbell off
|
||||||
msgwait 5
|
msgwait 0
|
||||||
|
msgminwait 0
|
||||||
defutf8 on
|
defutf8 on
|
||||||
deflogin on
|
deflogin on
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue