X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tmux%2F.tmux.conf;h=99442b50195564eda489941055cd170d5a6e46f0;hb=fec7e1308b2dcfd5e87663b8d248152b7393b300;hp=7c34248fa16bea73197ffa1581dc2e5e5fc5995c;hpb=93c7ca3a3c72e3c4b2fee37e6669e81753f4e980;p=dotfiles.git diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 7c34248..99442b5 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -30,8 +30,33 @@ set-window-option -g window-status-current-format "#I:#W#F" set-window-option -g window-status-current-style "bg=red" set-window-option -g window-status-last-style "bg=cyan" -bind-key u capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'urlview /tmp/tmux-buffer' \; delete-buffer -bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer -bind-key Y capture-pane -J -S - -E - \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer bind-key b set-option status unbind-key L + +bind-key t display-menu \ + music t "popup -KE -w 100% -R ~/bin/tmux-menu-music.sh" \ + pass p "popup -KE -R ~/bin/tmux-menu-pass.sh" \ + dict d "popup -KE -h 100% -R ~/bin/tmux-menu-dict.sh" \ + calc c "popup -KE -R ~/bin/tmux-menu-calc.sh" \ + top o "popup -KE -h 100% -R \"top -s 1\"" + +bind-key u { + capture-pane -J + save-buffer /tmp/tmux-buffer + delete-buffer + popup -EK -R "urlview /tmp/tmux-buffer" +} + +bind-key y { + capture-pane -J + save-buffer /tmp/tmux-buffer + delete-buffer + split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' +} + +bind-key Y { + capture-pane -J -S - -E - + save-buffer /tmp/tmux-buffer + delete-buffer + split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' +}