summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-12-10 19:40:11 -0800
committerNicholas <nbnoll@eml.cc>2021-12-10 19:40:11 -0800
commitc6031648bf14c02abe3536ca9df02341cf28cbd7 (patch)
tree7d62c73305dceb2dd6a7f6db80d5a4ba9bf458dc
parentff7867cbfaebdd8603d1a97414b1ab97fdba3098 (diff)
added linux configlaptop
-rw-r--r--.config/tmux/linux155
1 files changed, 155 insertions, 0 deletions
diff --git a/.config/tmux/linux b/.config/tmux/linux
new file mode 100644
index 0000000..d20b1b7
--- /dev/null
+++ b/.config/tmux/linux
@@ -0,0 +1,155 @@
+######################
+# Key Bindings
+######################
+
+# Save your poor pinky
+unbind C-b
+set-option -g prefix `
+bind-key ` send-prefix
+
+# Stay in the vi world
+setw -g mode-keys vi
+
+# Change split creation tools
+bind | split-window -h
+bind _ split-window -v
+
+# Allow for resize mode (-r)
+bind -r j resize-pane -D 2
+bind -r k resize-pane -U 2
+bind -r l resize-pane -R 2
+bind -r h resize-pane -L 2
+
+unbind '"'
+unbind %
+
+# update titles
+set-option -g set-titles on
+set-option -g set-titles-string "#W"
+
+# Clear screen
+bind C-L send-keys 'C-L'
+
+# Reload tmux
+bind R source-file ~/.config/tmux/config
+
+# Pane-switching (interfaces with vim)
+bind -n C-j run "tmux-send down"
+bind -n C-k run "tmux-send up"
+bind -n C-h run "tmux-send left"
+bind -n C-l run "tmux-send right"
+
+# Pane-layout
+bind K swap-pane -U
+bind J swap-pane -D
+
+# Layout rotation
+bind-key C-o rotate-window
+
+# Creation/Annihilation operators
+bind-key a last-pane
+bind-key q display-panes
+bind-key c new-window
+bind-key t next-window
+bind-key T previous-window
+bind-key f resize-pane -Z
+
+bind-key [ copy-mode
+bind-key ] paste-buffer
+
+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 'xclip -in -selection clipboard'
+bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
+
+# URL view
+bind-key u capture-pane \;\
+ save-buffer /tmp/tmux-buffer \;\
+ split-window -l 10 "urlview /tmp/tmux-buffer"
+
+######################
+# Design Changes
+######################
+
+set -g default-terminal "screen-256color"
+
+# UTF-8
+set -q -g status-utf8 on
+
+# Address vim mode switching
+set -sg escape-time 0
+
+set -g base-index 1
+setw -g pane-base-index 1
+
+# loud or quiet?
+set-option -g visual-activity off
+set-option -g visual-bell off
+set-option -g visual-silence off
+set-window-option -g monitor-activity off
+set-option -g bell-action none
+
+######################
+# colors
+######################
+
+### theme settings ###
+
+# window separators
+set-option -wg window-status-separator ""
+
+# monitor window changes
+set-option -wg monitor-activity on
+set-option -wg monitor-bell on
+
+# set statusbar update interval
+set-option -g status-interval 1
+
+### colorscheme ###
+
+# change window screen colors
+set-option -wg mode-style "bg=colour7,fg=colour0"
+
+# default statusbar colors (terminal bg should be #282828)
+set-option -g status-style "bg=terminal,fg=colour7"
+
+# default window title colors
+set-option -wg window-status-style "bg=colour0,fg=colour246"
+
+# colors for windows with activity
+set-option -wg window-status-activity-style "bg=colour0,fg=colour7"
+
+# colors for windows with bells
+set-option -wg window-status-bell-style "bg=colour0,fg=colour208"
+
+# active window title colors
+set-option -wg window-status-current-style "bg=colour208,fg=colour0"
+
+# pane border
+set-option -g pane-active-border-style "fg=colour4"
+set-option -g pane-border-style "fg=colour7"
+
+# message info
+set-option -g message-style "bg=colour7,fg=colour0"
+
+# writing commands inactive
+set-option -g message-command-style "bg=colour7,fg=colour0"
+
+# pane number display
+set-option -g display-panes-active-colour "4"
+set-option -g display-panes-colour "7"
+
+# clock
+set-option -wg clock-mode-colour "colour208"
+
+# copy mode highlighting
+%if #{>=:#{version},3.2}
+ set-option -wg copy-mode-match-style "bg=colour7,fg=colour0"
+ set-option -wg copy-mode-current-match-style "bg=colour2,fg=colour0"
+%endif
+
+# statusbar formatting
+set-option -g status-left "#[bg=7,fg=0]#{?client_prefix,#[bg=2],#[bg=colour247]} #{session_name} "
+set-option -g status-right "#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour19] %H:%M:%S #[bg=7, fg=0]#{?client_prefix,#[bg=2],#[bg=7]} #{host_short} "
+
+set-option -wg window-status-current-format "#{?window_zoomed_flag,#[fg=default bold],#[fg=default]}#[bg=4] #{window_index}:#{?window_zoomed_flag,*, }#{window_name}#{?window_zoomed_flag,*, }"
+set-option -wg window-status-format "#{?window_zoomed_flag,#[fg=15 bold],#[fg=15]}#[bg=236] #{window_index}: #{window_name} "