dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit b7dc5ba2330977fa63af8a2773f762c9acfb2cda
parent aac9dfec0b909732ad712435d12a2c8e954cbf60
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 25 Feb 2021 15:48:08 +0000

colours and style. change copy mode

Diffstat:
Mtmux/.tmux.conf | 64++++++++++++++++++++++++++++++++++++----------------------------
1 file changed, 36 insertions(+), 28 deletions(-)

diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -36,12 +36,19 @@ set -g history-limit 4096 set-option -g terminal-overrides 'xterm*:smcup@:rmcup@' # vim style copy paste mode +#unbind [ +#bind Escape copy-mode +#bind-key -T copy-mode-vi 'v' send -X begin-selection +#bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel \ +# "/usr/bin/xsel -i -p > /dev/null"\; \ +# display-message "copied selection to primary clipboard" unbind [ bind Escape copy-mode -bind-key -T copy-mode-vi 'v' send -X begin-selection -bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel \ - "xsel -i -p -b > /dev/null"\; \ - display-message "copied selection to primary & clipboard" +unbind i +bind i paste-buffer +bind-key -Tcopy-mode-vi 'v' send -X begin-selection +#bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection primary' +bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel 'xsel -i >/dev/null' # use vi mode setw -g mode-keys vi @@ -75,11 +82,11 @@ bind : command-prompt # panes set -g pane-border-style fg=black -set -g pane-active-border-style fg=colour5 +set -g pane-active-border-style fg=colour6 # messaging -set -g message-style fg=white,bg=black,bold -set -g message-command-style fg=colour6,bg=colour1 +set -g message-style fg=white,bg=colour5 +set -g message-command-style fg=colour0,bg=colour1 # window mode setw -g mode-style fg=colour0,bg=colour6 @@ -88,25 +95,26 @@ setw -g mode-style fg=colour0,bg=colour6 setw -g aggressive-resize on # status bar -set -g status-justify left +set -g status-justify right set -g status-bg default -set -g status-fg blue +set -g status-fg colour7 set -g status-interval 5 -set -g status-right-length 50 +set -g status-right-length 100 +setw -g window-status-separator " " -setw -g window-status-format "#[bg=default,fg=magenta] #I #[bg=default,fg=magenta] #W " -setw -g window-status-current-format "#[bg=black,fg=cyan] #I #[bg=black,fg=cyan] #W " -set-option -g status-right '#[bg=default,fg=magenta] #H #[bg=default,fg=colour11]#{bond_device} #{online_status} #[bg=default,fg=colour12]%Y-%m-%d %H:%M #[default]' +setw -g window-status-format "#[bg=colour241,fg=colour0] #I #[bg=colour241,fg=colour0]#W #[bg=colour0,fg=colour241]▓░" +setw -g window-status-current-format "#[bg=colour14,fg=colour0] #I #[bg=colour14,fg=colour0]#W #[bg=colour0,fg=colour14]▓░" +set -g status-justify left +set-option -g status-right '#[bg=colour0,fg=colour237]░▓#[bg=colour236,fg=colour15]#{bond_device}#{online_status}#[bg=colour237,fg=colour243] %Y%m#[bg=colour237,fg=colour3]%d#[fg=default]-#[fg=colour10]%u #[fg=colour7]%H%M #[bg=white,fg=colour237]▓#[default]' set-option -g status-left '' # online and offline icon for tmux-online-status -set -g @online_icon "#[fg=green]online#[default]" -set -g @offline_icon "#[fg=red]offline#[default]" +set -g @online_icon "#[bg=colour237,fg=colour2]░▓█#[bg=colour2,fg=black]online#[bg=colour237,fg=colour2]█▓░#[default]" +set -g @offline_icon "#[bg=colour237,fg=colour1]░▓█#[bg=colour1,fg=white]offline#[bg=colour237,fg=colour1]█▓░#[default]" -# tmux-bond-device plugin options -set -g @bond "" -set -g @ethernet "hardwire" -set -g @wifi "802.11" +# device names for tmux-bond-device +set -g @ethernet "#[bg=colour237,fg=colour7] hardwire #[default]" +set -g @wifi "#[bg=colour237,fg=colour7] airborne #[default]" # loud or quiet? set-option -g visual-activity on @@ -129,24 +137,24 @@ bind Z previous-layout # toggle status bar visibility bind t set status +# plugins +# `mkdir -p ~/.tmux/plugins/ ; git clone 'https://github.com/tmux-plugins/tpm' ~/.tmux/plugins/tpm` +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-online-status' +set -g @plugin 'https://gitlab.com/pyratebeard/tmux-bond-device.git' + # see: toggle on/off all keybindings · Issue #237 · tmux/tmux - https://github.com/tmux/tmux/issues/237 # Also, change some visual styles when window keys are off bind-key -T root F12 \ set-option -g prefix None \;\ - setw -g window-status-current-format "#[bg=black,fg=colour5] #I #[bg=black,fg=colour5] #W " \;\ - refresh-client -S \;\ + setw -g window-status-current-format "#[bg=colour5,fg=colour0] #I #[bg=colour5,fg=colour0]#W #[bg=colour0,fg=colour5]▓░" \;\ + refresh-client -S bind-key -T root F11 \ set-option -g prefix ` \;\ bind ` send-prefix \;\ - setw -g window-status-current-format "#[bg=black,fg=cyan] #I #[bg=black,fg=cyan] #W " \;\ + setw -g window-status-current-format "#[bg=colour14,fg=colour0] #I #[bg=colour14,fg=colour0]#W #[bg=colour0,fg=colour14]▓░" \;\ refresh-client -S -# plugins -# `mkdir -p ~/.tmux/plugins/ ; git clone 'https://github.com/tmux-plugins/tpm' ~/.tmux/plugins/tpm` -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-online-status' -set -g @plugin 'https://gitlab.com/pyratebeard/tmux-bond-device.git' - # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm'