* 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:
Dustin Kirkland 2011-01-26 14:28:45 -06:00
commit 605b7080cb
5 changed files with 17 additions and 6 deletions

5
debian/changelog vendored
View file

@ -1,6 +1,9 @@
byobu (3.26) unreleased; urgency=low 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 -- Dustin Kirkland <kirkland@ubuntu.com> Sun, 23 Jan 2011 16:28:45 -0600

View file

@ -21,17 +21,19 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
case "$-" in case "$-" in
*i*) *i*)
# no-op # no-op
;; ;;
*) *)
echo # screen -X -S "$PKG" at "$USER*" stuff ". $0"; then
echo "ERROR: You must source this file, rather than execute it." echo 2>&1
echo " . $0" echo "ERROR: You must source this file, rather than execute it." 2>&1
echo echo " . $0" 2>&1
#exit 1 echo 2>&1
exit 1
;; ;;
esac esac

View file

@ -25,6 +25,8 @@ case "$1" in
date +%Y-%m-%d 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 " printf "\005Y-\005m-\005d "
;; ;;
esac esac

View file

@ -61,6 +61,9 @@ bindkey "^[[32~" remove # shift-F6 | kill this split
bindkey "^[[5;3~" copy # alt-pageup | scrollback bindkey "^[[5;3~" copy # alt-pageup | scrollback
bindkey "^[[6;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 # toggle f-key keybindings off
register d "^a:source $BYOBU_PREFIX/share/byobu/keybindings/screen-escape-keys^M" 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 bind ! eval 'process d' 'backtick 111 9999999 9999999 byobu-status menu --disable-f-keys' # ctrl-a-! | toggle on/off f-keys

View file

@ -36,6 +36,7 @@ bindkey "^[O1;2R"
bindkey "^[O1;2S" bindkey "^[O1;2S"
bindkey "^[[15;2~" bindkey "^[[15;2~"
bindkey "^[[17;2~" bindkey "^[[17;2~"
bindkey ";5~"
# Use the following sequences for byobu functionality # Use the following sequences for byobu functionality
# SEQUENCE ACTION F-Key equivalent # SEQUENCE ACTION F-Key equivalent