diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..e75fb9b --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,35 @@ +bind R source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..." +bind C new-window nu + +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard" + +set-option -g history-limit 3000 + +set -g base-index 1 +set -g mouse on + +set -s escape-time 0 + +set -g status-interval 2 +#set -g status-justify centre # center align window list +#set -g status-left-length 20 +set -g status-right-length 200 +#set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]' +#set -g status-left '#[fg=default,bg=default,bright]#(sysinfo)' +set -g status-left '' +set -g status-right " #(/home/arne/.local/bin/sysinfo) %H:%M" +#set -g status-right '' + +set-option -g status-interval 1 +#set-option -g automatic-rename on +#set-option -g automatic-rename-format '#{b:pane_current_path}' +#set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})' +set -g automatic-rename on +set -g automatic-rename-format '#{b:pane_current_path} #{b:pane_current_command}' +set -g window-status-format '#I:#{b:pane_current_path}' +set -g window-status-current-format '#I:#[bg=white]#{pane_current_command}' + +set -g default-terminal screen-256color + +# Apply Tc +set-option -ga terminal-overrides ",screen-256color:Tc" diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index 62797d7..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,12 +0,0 @@ -bind R source-file ~/.tmux.conf \; display-message "Config reloaded..." - -set -g base-index 1 -set -g mouse on - -set -g status-interval 1 -#set -g status-justify centre # center align window list -#set -g status-left-length 20 -set -g status-right-length 200 -#set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]' -#set -g status-left '#[fg=default,bg=default,bright]#(sysinfo)' -set -g status-right "#(sysinfo) \"#{=21:pane_title}\" %H:%M %d-%b-%y"