X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.tmux.conf;fp=.tmux.conf;h=fbc308187e8d248173d523d483ec184e3f4766e9;hp=0000000000000000000000000000000000000000;hb=16ff07cf2c1fd43077b930bcdc926ae86abd935c;hpb=a798b1f596aa7c037f32f45371525331a3e773b2 diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..fbc3081 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,53 @@ +# pinosaur's dwm inspired tmux.conf + +set -sg escape-time 0 +set -g mouse off + +bind -n M-r source-file ~/.tmux.conf \; display "reloaded config file" + +# dwm like key bindings +bind -n M-Enter split-window -h +# bind -n M-N split-window -v +bind -n M-Enter split-window -h -c "#{pane_current_path}" +bind -n M-h resize-pane -L 5 +bind -n M-l resize-pane -R 5 +bind -n M-K swap-pane -U +bind -n M-J swap-pane -D +bind -n M-C kill-pane +bind -n M-k select-pane -L +bind -n M-j select-pane -R +bind -n M-Q kill-server + +# window stuff +set -g base-index 1 + +bind -n M-1 if-shell 'tmux select-window -t:1' '' 'new-window -t:1' +bind -n M-2 if-shell 'tmux select-window -t:2' '' 'new-window -t:2' +bind -n M-3 if-shell 'tmux select-window -t:3' '' 'new-window -t:3' +bind -n M-4 if-shell 'tmux select-window -t:4' '' 'new-window -t:4' +bind -n M-5 if-shell 'tmux select-window -t:5' '' 'new-window -t:5' +bind -n M-6 if-shell 'tmux select-window -t:6' '' 'new-window -t:6' +bind -n M-7 if-shell 'tmux select-window -t:7' '' 'new-window -t:7' +bind -n M-8 if-shell 'tmux select-window -t:8' '' 'new-window -t:8' +bind -n M-9 if-shell 'tmux select-window -t:9' '' 'new-window -t:9' + +bind -n M-w choose-tree + +# statusbar +set-option -g status-position top +set-window-option -g automatic-rename on + +# set-window-option -g window-status-fg white +# set-window-option -g window-status-bg black +# set-window-option -g window-status-current-fg black +# set-window-option -g window-status-current-bg green + +set -g status-left "" +#set -g status-right "" +set -g window-status-format "[#I]" +set -g window-status-current-format "[#I]" +set -g window-status-separator "" + +set -g status-right "/ #(blocks_bat) / #(blocks_ram) / #(blocks_mem) / #(blocks_date) / #(whoami) " +set status-right-length 80 +