mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-23 06:36:17 -07:00
* usr/bin/byobu-reconnect-sockets, usr/lib/byobu/date,
usr/share/byobu/keybindings/f-keys, usr/share/byobu/keybindings/screen-escape-keys: - add a ctrl-f5 keybinding for reconnecting sockets
This commit is contained in:
parent
f87381fd6d
commit
605b7080cb
5 changed files with 17 additions and 6 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -1,6 +1,9 @@
|
|||
byobu (3.26) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/bin/byobu-reconnect-sockets, usr/lib/byobu/date,
|
||||
usr/share/byobu/keybindings/f-keys,
|
||||
usr/share/byobu/keybindings/screen-escape-keys:
|
||||
- add a ctrl-f5 keybinding for reconnecting sockets
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 23 Jan 2011 16:28:45 -0600
|
||||
|
||||
|
|
|
@ -21,17 +21,19 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PKG="byobu"
|
||||
|
||||
case "$-" in
|
||||
*i*)
|
||||
# no-op
|
||||
;;
|
||||
*)
|
||||
echo
|
||||
echo "ERROR: You must source this file, rather than execute it."
|
||||
echo " . $0"
|
||||
echo
|
||||
#exit 1
|
||||
# screen -X -S "$PKG" at "$USER*" stuff ". $0"; then
|
||||
echo 2>&1
|
||||
echo "ERROR: You must source this file, rather than execute it." 2>&1
|
||||
echo " . $0" 2>&1
|
||||
echo 2>&1
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@ case "$1" in
|
|||
date +%Y-%m-%d
|
||||
;;
|
||||
*)
|
||||
msg="$(echo SGFwcHkgQmlydGhkYXkgU2NyZWVuIC0tIGh0dHA6Ly9iaXQubHkvc2NyZWVuLWJkYXkK | base64 -d)"
|
||||
[ "$(date +%d)" = "20" ] && [ "$(date +%m)" = "03" ] && screen -X -S "byobu" at "*" echo "[$msg]"
|
||||
printf "\005Y-\005m-\005d "
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -61,6 +61,9 @@ bindkey "^[[32~" remove # shift-F6 | kill this split
|
|||
bindkey "^[[5;3~" copy # alt-pageup | scrollback
|
||||
bindkey "^[[6;3~" copy # alt-pageup | scrollback
|
||||
|
||||
# Make socket reconnection a little easier
|
||||
bindkey ";5~" eval 'process r' 'stuff "$BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh sockets
|
||||
|
||||
# toggle f-key keybindings off
|
||||
register d "^a:source $BYOBU_PREFIX/share/byobu/keybindings/screen-escape-keys^M"
|
||||
bind ! eval 'process d' 'backtick 111 9999999 9999999 byobu-status menu --disable-f-keys' # ctrl-a-! | toggle on/off f-keys
|
||||
|
|
|
@ -36,6 +36,7 @@ bindkey "^[O1;2R"
|
|||
bindkey "^[O1;2S"
|
||||
bindkey "^[[15;2~"
|
||||
bindkey "^[[17;2~"
|
||||
bindkey ";5~"
|
||||
|
||||
# Use the following sequences for byobu functionality
|
||||
# SEQUENCE ACTION F-Key equivalent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue