commit 81083db46080941d69eb197963c326895aa3ba3a
parent e0396fe08c3d0751c0d1d4a632d23c7fdc1e862c
Author: pyratebeard <root@pyratebeard.net>
Date: Sun, 14 Apr 2019 18:21:17 +0100
updated tmux.conf
Diffstat:
3 files changed, 49 insertions(+), 100 deletions(-)
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
@@ -1,105 +1,93 @@
-# '########:'##::::'##:'##::::'##:'##::::'##:
-# ... ##..:: ###::'###: ##:::: ##:. ##::'##::
-# ::: ##:::: ####'####: ##:::: ##::. ##'##:::
-# ::: ##:::: ## ### ##: ##:::: ##:::. ###::::
-# ::: ##:::: ##. #: ##: ##:::: ##::: ## ##:::
-# ::: ##:::: ##:.:: ##: ##:::: ##:: ##:. ##::
-# ::: ##:::: ##:::: ##:. #######:: ##:::. ##:
-# :::..:::::..:::::..:::.......:::..:::::..::
-#
-# AUTHOR pyratebeard <root@pyratebeard.net>
-# CODE http://github.com/pyratebeard/dotfiles
-# ░░░░░░░░░░
-
-# Change prefix to backtick
+# ░▀█▀░█▄█░█░█░█░█░░
+# ░░█░░█░█░█░█░▄▀▄░░
+# ░░▀░░▀░▀░▀▀▀░▀░▀░░
+
+# change prefix to backtick
unbind C-b
-set-option -g prefix M-`
-bind M-` send-prefix
+set-option -g prefix `
+bind ` send-prefix
-# Shell
+# shell
set -g default-command /usr/bin/zsh
set -g default-shell /usr/bin/zsh
-# Start with window 1 (instead of 0)
+# start with window 1 (instead of 0)
set -g base-index 1
-# Start with pane 1
+# start with pane 1
set -g pane-base-index 1
-# Keep window names fixed
+# keep window names fixed
set-option -g allow-rename off
-# Screen mode
+# screen mode
set -g default-terminal "screen-256color"
-# Source config file
+# source config file
bind r source-file ~/.tmux.conf
-# History
+# history
set -g history-limit 4096
-# Allow terminal scrolling
+# allow terminal scrolling
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
-# Vim style copy paste mode
+# vim style copy paste mode
unbind [
bind Escape copy-mode
-#unbind p
-#bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel \
- "xclip -in -selection clipboard > /dev/null"\; \
- display-message "copied selection to clipboard"
+ "xsel -i -p -b > /dev/null"\; \
+ display-message "copied selection to primary & clipboard"
-# Use vi mode
+# use vi mode
setw -g mode-keys vi
set -g status-keys vi
-# Pleb mode
-#set -g mouse on
-
-# Splitting
+# splitting
unbind %
-bind h split-window -h
+bind b split-window -h
unbind '"'
bind v split-window -v
-# Window switching
-# Urxvt tab like window switching (-n: no prior escape seq)
+# window switching
+# urxvt tab like window switching (-n: no prior escape seq)
bind-key -n S-left prev
bind-key -n S-right next
bind-key -n C-left swap-window -t -1
bind-key -n C-right swap-window -t +1
-bind ` select-pane -t :.+
-# Colon :
+# pane switching
+unbind h
+bind h select-pane -L
+unbind j
+bind j select-pane -D
+unbind k
+bind k select-pane -U
+unbind l
+bind l select-pane -R
+
+# colon :
bind : command-prompt
-# Panes
+# panes
set -g pane-border-fg black
set -g pane-active-border-fg cyan
-#set -g pane-active-border-attr blink
-# Status line
-set -g status-justify left
-set -g status-bg colour16
-set -g status-fg colour6
-set -g status-interval 2
-
-# Messaging
+# messaging
set -g message-fg colour0
set -g message-bg colour6
set -g message-command-fg colour6
set -g message-command-bg colour1
-# Window mode
+# window mode
setw -g mode-bg colour6
setw -g mode-fg colour0
-# Resizing
+# resizing
setw -g aggressive-resize on
-# Status bar:
+# status bar
set -g message-attr bold
set -g message-fg white
set -g message-bg black
@@ -108,30 +96,30 @@ set -g status-justify right
set -g status-bg black
set -g status-fg blue
set -g status-interval 5
-#set -g status-utf8 on
-#setw -g window-status-format "#[bg=black,fg=white] #I #[bg=black,fg=white] #{pane_current_command} "
-setw -g window-status-format "#[bg=black,fg=white] #I #[bg=black,fg=white] #W "
-#setw -g window-status-current-format "#[bg=cyan,fg=black] #I #[bg=cyan,fg=black] #{pane_current_command} "
-setw -g window-status-current-format "#[bg=cyan,fg=black] #I #[bg=cyan,fg=black] #W "
+setw -g window-status-format "#[bg=black,fg=magenta] #I #[bg=black,fg=magenta] #W "
+setw -g window-status-current-format "#[bg=yellow,fg=black] #I #[bg=black,fg=yellow] #W "
set -g status-justify left
-set-option -g status-right '#[bg=black,fg=white] #H #[default] #[bg=black,fg=white] %a %Y-%m-%d %H:%M #[default]'
+set-option -g status-right '#[bg=black,fg=white] #H #[default] #[bg=black,fg=white] %Y-%m-%d %H:%M #[default]'
set-option -g status-left ''
-# Loud or quiet?
+# loud or quiet?
set-option -g visual-activity on
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
-# Tmux clock
+# tmux clock
set -g clock-mode-colour colour6
-# Some key-binding changes
+# escape time (for vim)
+set -sg escape-time 0
+
+# some key-binding changes
bind x kill-pane
bind X next-layout
bind Z previous-layout
-# Toggle status bar visibility
+# toggle status bar visibility
bind t set status
diff --git a/tmux/.tmuxinator/decker.yml b/tmux/.tmuxinator/decker.yml
@@ -1,18 +0,0 @@
-# ~/.tmuxinator/decker.yml
-
-name: decker
-root: ~/
-
-tmux_options: -2
-
-windows:
- - irc:
- layout: 0abe,98x55,0,0[98x17,0,0,2,98x37,0,18,3]
- panes:
- - ncmpcpp
- - irssi
- - mail:
- layout: 0ac7,98x55,0,0[98x17,0,0,4,98x37,0,18,5]
- panes:
- - mutt
- - snownews
-\ No newline at end of file
diff --git a/tmux/.tmuxinator/work.yml b/tmux/.tmuxinator/work.yml
@@ -1,20 +0,0 @@
-# ~/.tmuxinator/work.yml
-
-name: work
-root: ~/
-
-tmux_options: -2
-
-windows:
- - mail:
- layout: 0abe,98x55,0,0[98x17,0,0,2,98x37,0,18,3]
- panes:
- - ncmpcpp
- - mutt
- - twitter:
- - turses
- - news:
- layout: 0ac7,98x55,0,0[98x17,0,0,4,98x37,0,18,5]
- panes:
- - ranger
- - snownews