From ca62ea79ee3fa0599e4e2371bb31e2cf05bacfa4 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 24 Aug 2016 21:55:54 +0100 Subject: [PATCH] Initial commit --- .gitignore | 1 + README.md | 12 ++++++ config/tmux-i3.conf | 11 +++++ config/tmux-plasma.conf | 13 ++++++ config/tmux-tty.conf | 13 ++++++ config/tmux.conf | 90 +++++++++++++++++++++++++++++++++++++++++ plugins/tmux-sensible | 1 + plugins/tpm | 1 + 8 files changed, 142 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 config/tmux-i3.conf create mode 100644 config/tmux-plasma.conf create mode 100644 config/tmux-tty.conf create mode 100644 config/tmux.conf create mode 160000 plugins/tmux-sensible create mode 160000 plugins/tpm diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4e5f6c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d246407 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +tmux.conf +========= + +Configuration files for tmux + +Usage +----- + +Source the appropriate file from config in the file ~/.tmux.conf, e.g. +``` +source ~/.tmux/config/tmux-i3.conf +``` diff --git a/config/tmux-i3.conf b/config/tmux-i3.conf new file mode 100644 index 0000000..b20b57d --- /dev/null +++ b/config/tmux-i3.conf @@ -0,0 +1,11 @@ +# Status bar -------------------------------------- + +# center align the window list +set -g status-justify centre + +# set the status bar +set -g status-left "" +set -g status-right "" + +# Source the common settings ---------------------- +source ~/.tmux/config/tmux.conf diff --git a/config/tmux-plasma.conf b/config/tmux-plasma.conf new file mode 100644 index 0000000..0241d3d --- /dev/null +++ b/config/tmux-plasma.conf @@ -0,0 +1,13 @@ +# Status bar -------------------------------------- + +# center align the window list +set -g status-justify centre + +# set the status bar +set -g status-left "[#S@#H]" +set -g status-right "| #[fg=cyan]#(cat /proc/loadavg | cut -d \" \" -f 1,2,3)#[default] | %H:%M %a %d-%b-%Y" +set -g status-left-length 15 +set -g status-right-length 75 + +# Source the common settings ---------------------- +source ~/.tmux/config/tmux.conf diff --git a/config/tmux-tty.conf b/config/tmux-tty.conf new file mode 100644 index 0000000..0cc5910 --- /dev/null +++ b/config/tmux-tty.conf @@ -0,0 +1,13 @@ +# Status bar -------------------------------------- + +# center align the window list +set -g status-justify centre + +# set the status bar +set -g status-left "[#S@#H]" +set -g status-right "| #[fg=cyan]#(cat /proc/loadavg | cut -d \" \" -f 1)#[default] | #[fg=cyan]W: #($HOME/Programs/Wireless-Status-Query/Wireless-Status-Query.sh)#[default] | #[fg=cyan]#($HOME/Programs/Battery-Capacity-Query/Battery-Capacity-Query.sh -full)#[default] | %H:%M %a %d-%b-%Y" +set -g status-left-length 15 +set -g status-right-length 75 + +# Source the common settings ---------------------- +source ~/.tmux/config/tmux.conf diff --git a/config/tmux.conf b/config/tmux.conf new file mode 100644 index 0000000..adab313 --- /dev/null +++ b/config/tmux.conf @@ -0,0 +1,90 @@ +# Global options ---------------------------------- + +# Set tmux to use 256 colours +set -g default-terminal "xterm-256color" +#"screen-256color" + +# Start windows and panes at 1, not 0 +set -g base-index 1 +setw -g pane-base-index 1 + +# super useful when using "grouped sessions" and multi-monitor setup +setw -g aggressive-resize on + +# Custom bindings --------------------------------- + +# Change prefix to Ctrl-a like in Screen +unbind C-b +set -g prefix C-a +bind C-a send-prefix + +# confirm before killing a window or the server +bind-key C-d confirm kill-pane +bind-key C-k confirm kill-window +bind-key M-k confirm kill-server + +# toggle statusbar +bind-key b set-option status + +# map Vi movement keys as pane movement keys +bind-key j select-pane -L +bind-key k select-pane -D +bind-key l select-pane -U +bind-key \; select-pane -R + +bind -n F1 select-window -t 1 +bind -n F2 select-window -t 2 +bind -n F3 select-window -t 3 +bind -n F4 select-window -t 4 +bind -n F5 select-window -t 5 +bind -n F6 select-window -t 6 +bind -n F7 select-window -t 7 +bind -n F8 select-window -t 8 +bind -n F9 select-window -t 9 +bind -n F10 select-window -t 10 +bind -n F11 select-window -t 11 +bind -n F12 select-window -t 12 + +# Colors ------------------------------------------ + +# default statusbar colors +set -g status-fg white +set -g status-bg blue +set -g status-attr default + +# default window title colors +set-window-option -g window-status-fg white +set-window-option -g window-status-bg default +set-window-option -g window-status-attr default + +# active window title colors +set-window-option -g window-status-current-fg black +set-window-option -g window-status-current-bg green +set-window-option -g window-status-current-attr default + +# default pane border colors +set -g pane-border-fg default +set -g pane-border-bg default + +# active pane border colors +set -g pane-active-border-fg blue +set -g pane-active-border-bg default + +# command/message line colors +#set -g message-fg white +#set -g message-bg black +#set -g message-attr bright + +# Plugin manager ---------------------------------- + +# List of plugins +#set -g @plugin 'tmux-plugins/tpm' +#set -g @plugin 'tmux-plugins/tmux-sensible' + +set -g @tpm_plugins ' \ + tmux-plugins/tpm \ + tmux-plugins/tmux-sensible \ + ' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' diff --git a/plugins/tmux-sensible b/plugins/tmux-sensible new file mode 160000 index 0000000..526110e --- /dev/null +++ b/plugins/tmux-sensible @@ -0,0 +1 @@ +Subproject commit 526110eb9b60825d3276afba97ffa4cedb4b0ab9 diff --git a/plugins/tpm b/plugins/tpm new file mode 160000 index 0000000..b4c8988 --- /dev/null +++ b/plugins/tpm @@ -0,0 +1 @@ +Subproject commit b4c89884e0a8a97fdc1fd470688677867e14e801