Update configs. #4
39
.tmux.conf
39
.tmux.conf
@@ -2,43 +2,29 @@
|
||||
## Author: Shaun Reed | Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ##
|
||||
## ##
|
||||
## A custom tmux multiplexer config / layout created for Manjaro i3 ##
|
||||
##+ Inspired by vim-powerline: https://github.com/Lokaltog/powerline ##
|
||||
## Inspired by vim-powerline: https://github.com/Lokaltog/powerline ##
|
||||
## ##
|
||||
## This config created and tested with Powerline Consolas ##
|
||||
##+ https://github.com/Lokaltog/powerline-fonts ##
|
||||
##+ Some symbols may require Font Awesome 5 Free Solid ##
|
||||
## This config was created and tested with Powerline Consolas ##
|
||||
## https://github.com/Lokaltog/powerline-fonts ##
|
||||
## Some symbols may require Font Awesome 5 Free Solid ##
|
||||
## ##
|
||||
###############################################################################
|
||||
# .tmux.conf
|
||||
#
|
||||
# If symbols or powerline layout fail to appear...
|
||||
#+ Check your terminal emulator font settings include these fonts
|
||||
#+ Check that required fonts are installed
|
||||
# + Check your terminal emulator font settings include these fonts
|
||||
# + Check that required fonts are installed
|
||||
#
|
||||
# Note: The use of 256colours in this file allows for portable color definitions between platforms and applications
|
||||
#+ Changing to a different color interpretation may result in some apps displaying colors differently than others
|
||||
#+ Vim plugin 'Colorizer' does not reflect the actual 256colour values
|
||||
#+ See https://jonasjacek.github.io/colors/ for a full list of 256colours
|
||||
# + Changing to a different color interpretation may result in some apps displaying colors differently than others
|
||||
# + Vim plugin 'Colorizer' does not reflect the actual 256colour values
|
||||
# + See https://jonasjacek.github.io/colors/ for a full list of 256colours
|
||||
|
||||
# Settings for terminal text selection / copy options
|
||||
# + Source: https://www.seanh.cc/2020/12/27/copy-and-paste-in-tmux/
|
||||
# + Depends: https://github.com/tmux-plugins/tmux-yank#linux
|
||||
set -g mouse on
|
||||
# These bindings are for X Windows only. If you're using a different
|
||||
# window system you have to replace the `xsel` commands with something
|
||||
# else. See https://github.com/tmux/tmux/wiki/Clipboard#available-tools
|
||||
bind -T copy-mode DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -T copy-mode TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -n TripleClick1Pane select-pane \; copy-mode -M \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -n MouseDown2Pane run "tmux set-buffer -b primary_selection \"$(xsel -o)\"; tmux paste-buffer -b primary_selection; tmux delete-buffer -b primary_selection"
|
||||
#set -g @plugin 'tmux-plugins/tpm'
|
||||
#set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
#set -g @yank_action 'copy-pipe-no-clear'
|
||||
#bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
|
||||
#bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
|
||||
# Custom drop-down menu
|
||||
|
||||
set-option -s set-clipboard external
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
|
||||
@@ -88,11 +74,6 @@ set -g window-status-current-format "#($HOME/go/bin/gitmux -cfg $HOME/.gitmux.co
|
||||
#set -g window-status-current-format "#[fg=colour255,bg=colour233]#[fg=colour100,nobold] #(whoami)@#H #[fg=colour255,bg=colour233,nobold]"
|
||||
|
||||
run-shell "bash ~/.tmux/tmux-conf.sh"
|
||||
# Check if we are running xorg
|
||||
#set -g status-left "#[fg=colour233,bg=colour100,bold] #S #[fg=colour100,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #(hostname) #[fg=colour235,bg=colour233]#[fg=colour240,bg=colour233]"
|
||||
#set -g status-right "#[fg=colour235,bg=colour233,bold]#[fg=colour240,bg=colour235,nobold] %H:%M:%S #[fg=colour240,bg=colour235,bold]#[fg=colour233,bg=colour240,nobold] %d-%b-%y #[fg=colour100,bg=colour240,bold]#[fg=colour233,bg=colour100,bold] #(cd #{pane_current_path}; basename `git rev-parse --show-toplevel`) "
|
||||
|
||||
|
||||
# Current window status
|
||||
set -g window-status-current-style bg=colour233,fg=colour100
|
||||
# Window with activity status
|
||||
|
||||
@@ -8,12 +8,6 @@ set -g mouse on
|
||||
# These bindings are for X Windows only. If you're using a different
|
||||
# window system you have to replace the `xsel` commands with something
|
||||
# else. See https://github.com/tmux/tmux/wiki/Clipboard#available-tools
|
||||
bind -T copy-mode DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -T copy-mode TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -n TripleClick1Pane select-pane \; copy-mode -M \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
|
||||
bind -n MouseDown2Pane run "tmux set-buffer -b primary_selection \"$(xsel -o)\"; tmux paste-buffer -b primary_selection; tmux delete-buffer -b primary_selection"
|
||||
|
||||
# List of plugins and their settings
|
||||
|
||||
Reference in New Issue
Block a user