-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b84207
commit 2cedcad
Showing
1 changed file
with
18 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 7,10 @@ bind -n C-k send-keys C-k | |
set -sg escape-time 0 | ||
set -sg repeat-time 600 | ||
|
||
# Reload config | ||
unbind r | ||
bind r source-file ~/.tmux.conf | ||
|
||
# Less stretching to get to the first item. | ||
set -g base-index 1 | ||
setw -g pane-base-index 1 | ||
|
@@ -21,10 25,6 @@ set -g status-keys vi | |
# Use vim keybindings in copy mode | ||
setw -g mode-keys vi | ||
|
||
# Copy & Paste | ||
set-option -g default-shell $SHELL | ||
set-option -g default-command "reattach-to-user-namespace -l ${SHELL}" | ||
|
||
# Toggle status bar | ||
bind S set-option status | ||
|
||
|
@@ -35,6 35,7 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | ||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | ||
bind-key -T copy-mode-vi Escape send-keys -X cancel | ||
unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse | ||
|
||
# After we have something yanked back in Vim we can paste our yanked selection | ||
# anywhere we are in insert mode with (prefix p). This works in the vim buffer, | ||
|
@@ -69,33 70,19 @@ set -g set-titles-string '#S:#I.#P #W' | |
set -g default-terminal "tmux-256color" | ||
set -ga terminal-overrides ",xterm-256color:Tc" | ||
|
||
# One Dark | ||
white="#ffffff" | ||
onedark_black="#282c34" | ||
onedark_blue="#61afef" | ||
onedark_yellow="#e5c07b" | ||
onedark_red="#e06c75" | ||
onedark_white="#aab2bf" | ||
onedark_green="#98c379" | ||
onedark_visual_grey="#3e4452" | ||
onedark_comment_grey="#5c6370" | ||
set -g status-fg $onedark_white | ||
set -g status-bg $onedark_black | ||
|
||
|
||
# Move status bar to the top | ||
set-option -g status-position bottom | ||
set-option -g status-position top | ||
|
||
# Status bar settings | ||
set -g status-left-length 50 | ||
set -g status-right-length 150 | ||
set -g status-interval 5 | ||
set -g status-left " #(whoami)@#h | #[fg=$white,bold]#I.#P #{prefix_highlight}| " | ||
set -g status-right "#{battery_percentage} (#{battery_remain}) #{online_status} P:#{maildir_counter_1} G:#{maildir_counter_2} W:#{maildir_counter_3} | %A %d/%m/%y %H:%M" | ||
set -g status-justify left # center align window list | ||
# set -g status-left-length 50 | ||
# set -g status-right-length 150 | ||
# set -g status-interval 5 | ||
# set -g status-left " #(whoami)@#h | #[fg=$white,bold]#I.#P #{prefix_highlight}| " | ||
# set -g status-right "#{battery_percentage} (#{battery_remain}) #{online_status} P:#{maildir_counter_1} G:#{maildir_counter_2} W:#{maildir_counter_3} | %A %d/%m/%y %H:%M" | ||
# set -g status-justify left # center align window list | ||
|
||
set -g window-status-format "#[fg=white] #I.#W " | ||
set -g window-status-current-format "#[fg=$onedark_green,noreverse,bold] #I.#W " | ||
# set -g window-status-format "#[fg=white] #I.#W " | ||
# set -g window-status-current-format "#[fg=$onedark_green,noreverse,bold] #I.#W " | ||
|
||
# Activity | ||
setw -g monitor-activity on | ||
|
@@ -110,6 97,8 @@ bind , command-prompt "rename-window '%%'" | |
|
||
# List of plugins | ||
set -g @plugin 'tmux-plugins/tpm' | ||
set -g @plugin 'christoomey/vim-tmux-navigator' # for navigating panes and vim/nvim with Ctrl-hjkl | ||
set -g @plugin 'jimeh/tmux-themepack' # to configure tmux theme | ||
set -g @plugin 'tmux-plugins/tmux-sensible' | ||
set -g @plugin 'tmux-plugins/tmux-resurrect' | ||
set -g @plugin 'tmux-plugins/tmux-continuum' | ||
|
@@ -118,19 107,11 @@ set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-battery' | ||
set -g @plugin 'tmux-plugins/tmux-open' | ||
set -g @plugin 'tmux-plugins/tmux-sidebar' | ||
set -g @plugin 'tmux-plugins/tmux-maildir-counter' | ||
set -g @plugin 'tmux-plugins/tmux-online-status' | ||
|
||
# Plugin Settings | ||
set -g @continuum-restore 'on' | ||
set -g @continuum-boot 'on' | ||
set -g @continuum-boot-options 'iterm,fullscreen' | ||
set -g @online_icon "#[fg=$onedark_green]ON#[fg=default]" | ||
set -g @offline_icon "#[fg=$onedark_red]OFF#[fg=default]" | ||
set -g @maildir_counters '~/Mail/[email protected]/INBOX/new|~/Mail/[email protected]/INBOX/new|~/Mail/[email protected]/INBOX/new' | ||
set -g @resurrect-capture-pane-contents 'on' # allow tmux-ressurect to capture pane contents | ||
set -g @themepack 'powerline/default/gray' # use this theme for tmux | ||
|
||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | ||
run '~/.tmux/plugins/tpm/tpm' | ||
|
||
bind M run-shell -b "offlineimap" # download/check email |