aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-02-17 17:59:26 +0100
committerDavid Runge <dave@sleepmap.de>2015-02-17 17:59:26 +0100
commit9f18f26205fd11d50d54536904f182c63caefdd1 (patch)
tree406ee8ed33be42dc911a65fe1851c23fc6d59b29
parent6cfbeade23c3fdf5f27885e247913ddb98d25506 (diff)
downloaddotfiles-9f18f26205fd11d50d54536904f182c63caefdd1.tar.gz
dotfiles-9f18f26205fd11d50d54536904f182c63caefdd1.tar.bz2
dotfiles-9f18f26205fd11d50d54536904f182c63caefdd1.tar.xz
dotfiles-9f18f26205fd11d50d54536904f182c63caefdd1.zip
.tmux.conf: Adding tmux plugin manager and removing unneeded settings.
-rw-r--r--.tmux.conf60
1 files changed, 27 insertions, 33 deletions
diff --git a/.tmux.conf b/.tmux.conf
index 98940f0..45a022b 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -1,10 +1,6 @@
# Ring the bell if any background window rang a bell
set -g bell-action any
-# Default termtype. If the rcfile sets $TERM, that overrides this value.
-#set -g default-terminal "screen-256color"
-set -g default-terminal "rxvt-unicode-256color"
-
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
@@ -27,43 +23,19 @@ bind-key K resize-pane -U
bind-key H resize-pane -L
bind-key L resize-pane -R
# Fix ctrl + L/R
-#bind-key -n C-Right send-keys w
-#bind-key -n C-Left send-keys b
+bind-key -n C-Right send-keys w
+bind-key -n C-Left send-keys b
# setting titles on
set -g set-titles on
set -g set-titles-string "#T"
set-option -g allow-rename on
-#set base-index 1
+set base-index 1
set -g history-limit 10000
-set-window-option -g xterm-keys on #pass xterminal keys to tmux terminals
setw -g mode-mouse on
-#new -n Irssi irssi
-#neww -n Serv htop
-#neww -n Shell
-
-#Help
-# c Create a new window
-# n Change to next window
-# p Change to previous window
-# " Split pane horizontally
-# % Split pane vertically
-# , Rename current window
-# o Move to next pane
-# unbind C-b Unbind Control-Key
-# set -g prefix C-a Bind to new Control-Key
-# Ctrl-b l (Move to the previously selected window)
-# Ctrl-b w (List all windows / window numbers)
-# Ctrl-b <window number> (Move to the specified window number, the default bindings are from 0 – 9)
-# Ctrl-b q (Show pane numbers, when the numbers show up type the key to goto that pane)
-# Ctrl-b f <window name> (Search for window name)
-# Ctrl-b w (Select from interactive list of windows)
-
-
-
-# Keep your finger on ctrl, or don't
+# Logout with Ctrl+D
bind-key ^D detach-client
# Use vi keybindings for tmux commandline input.
@@ -98,7 +70,7 @@ set -g message-attr bold
# set status-interval to 2 for tmux-mem-cpu-load
set -g status-interval 2
set -g status-left '#[fg=colour235,bg=colour252,bold] #(hostname) #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀'
-set -g status-right "#[fg=colour235,bg=colour252]⮀#[fg=colour235,bg=colour252,bold] #(tmux-mem-cpu-load 2) #[fg=colour252,bg=colour39]⮀#[fg=colour39,bg=colour234]⮀#[fg=colour39,bg=colour234] %H:%M ⮂"
+set -g status-right "#[fg=colour235,bg=colour252]⮀#[fg=colour235,bg=colour252,bold] CPU:#{cpu_percentage} #{cpu_icon} Battery:#{battery_percentage} #{battery_icon}#[fg=colour252,bg=colour39]⮀#[fg=colour39,bg=colour234]⮀#[fg=colour39,bg=colour234] %H:%M ⮂"
set -g window-status-format "#[fg=colour235,bg=colour252,bold] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=black,bg=colour39,noreverse,bold] #I: #W #[fg=colour39,bg=colour234,nobold]⮀"
@@ -127,3 +99,25 @@ bind r source-file ~/.tmux.conf
# Swap windows
bind-key m command-prompt -p "move window to:" "swap-window -t '%%'"
+
+# List of plugins
+# Supports `github_username/repo` or full git repo URLs
+set -g @tpm_plugins ' \
+ tmux-plugins/tpm \
+ tmux-plugins/tmux-sensible \
+ tmux-plugins/tmux-cpu \
+ tmux-plugins/tmux-yank \
+ tmux-plugins/tmux-open \
+ tmux-plugins/tmux-battery \
+ tmux-plugins/tmux-logging \
+ tmux-plugins/tmux-online-status \
+ tmux-plugins/tmux-sidebar \
+ '
+# Other examples:
+# github_username/plugin_name \
+# git@github.com/user/plugin \
+# git@bitbucket.com/user/plugin \
+
+# Initializes TMUX plugin manager.
+# Keep this line at the very bottom of tmux.conf.
+run-shell '~/.tmux/plugins/tpm/tpm'