X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=tmux%2F.tmux.conf;h=fb6347b971844ac8378ad59ee3cd68cfe1a2bded;hp=629859a390314bba471fdc1bed0f2de794723dfa;hb=5bdb6b926f055a614492fd9baa1a320d5ed4502e;hpb=beccd2aa892924796642febb0323910942abc50b diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 629859a..fb6347b 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -13,6 +13,7 @@ bind-key C-a send-prefix bind-key -n C-PgUp previous-window bind-key -n C-PgDn next-window bind-key -n S-PgUp copy-mode -u + bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" @@ -24,14 +25,39 @@ set-option -g status-justify centre set-window-option -g automatic-rename on set-window-option -g window-status-format "#I:#W:#T#F" -set-window-option -g window-status-bg green -set-window-option -g window-status-fg black +set-window-option -g window-status-style "bg=green fg=black" set-window-option -g window-status-current-format "#I:#W#F" -set-window-option -g window-status-current-bg red -set-window-option -g window-status-last-bg cyan +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 /tmp/tmux-buffer' \; delete-buffer -bind-key Y capture-pane -J -S - -E - \; save-buffer /tmp/tmux-buffer \; split-window 'vim /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-session.sh" \ + dict d "popup -KE -h 100% -R ~/bin/tmux-menu-dict.sh" \ + calc c "popup -KE -R ~/bin/tmux-menu-calc.sh" \ + cal l "popup -R \"cal -3N\"" \ + 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 -w 100% -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' +}