From cf8c5e78a6b5229cb5c8bd59cbb7d09942fb2b90 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Sat, 7 Nov 2015 17:00:15 -0500 Subject: [PATCH] Modify configs - Updated vimrc to point to in-repo files, for Fugitive - Modified tmux status bar to include better details - Created clocks.sh to show multiple timezones - Added to right-side of tmux status bar --- tmux/clocks.sh | 16 ++++++++++++++++ tmux/tmux.conf | 29 ++++++++++++++++++++--------- vim/vimrc | 6 +++--- 3 files changed, 39 insertions(+), 12 deletions(-) create mode 100755 tmux/clocks.sh diff --git a/tmux/clocks.sh b/tmux/clocks.sh new file mode 100755 index 0000000..047ae1b --- /dev/null +++ b/tmux/clocks.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# Supply tmux with times for right-hand status bar +# Each variable encompasses a time and a color + +caliTime="$(TZ=America/Los_Angeles date +%R)" +buffTime="$(TZ=America/New_York date +%R)" +utcTime="$(date -u +%R)" +bangTime="$(TZ=Asia/Kolkata date +%R)" + +caliForm="#[fg=red][ $caliTime ]" +buffForm="#[fg=green][ $buffTime ]" +utcForm="#[fg=blue][ $utcTime ]" +bangForm="#[fg=magenta][ $bangTime ]" + +echo $caliForm$buffForm$utcForm$bangForm diff --git a/tmux/tmux.conf b/tmux/tmux.conf index de7ac42..1a152a1 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -7,7 +7,7 @@ #tmux display things in 256 colors set -g default-terminal "screen-256color" -#start window numbers at 1 to match keyboard order with tmux window order +#start window numbers at 1 set -g base-index 1 setw -g pane-base-index 1 @@ -17,13 +17,19 @@ set -g renumber-windows on #change default delay to be a bit more responsive set -s escape-time 1 +###### +# Mouse +### +setw -g mode-mouse on +set -g mouse-select-pane on + ###### # Colors ### ## Status Bar and Related Items # Bar itself -set -g status-fg white +set -g status-fg cyan set -g status-bg black # window list @@ -32,14 +38,14 @@ setw -g window-status-bg default setw -g window-status-attr dim setw -g window-status-current-fg white -setw -g window-status-current-bg red +setw -g window-status-current-bg black setw -g window-status-current-attr bright ## Pane Dividers # set -g pane-border-fg color # set -g pane-border-bg color -set -g pane-active-border-fg white -set -g pane-active-border-bg yellow +set -g pane-active-border-fg black +set -g pane-active-border-bg cyan ## Command Line set -g message-fg red @@ -53,8 +59,10 @@ set -g status-utf8 on setw -g monitor-activity on set -g visual-activity on -# set -g status-left -# set -g status-right +set -g status-left-length 40 +set -g status-left "#[bright][ #S ]" +set -g status-right-length 60 +set -g status-right "#(~/Workbench/dotfiles/tmux/clocks.sh)" ###### # Keybinds @@ -80,8 +88,11 @@ bind -r K resize-pane -U 10 bind -r L resize-pane -R 10 #split window and fix path for tmux 1.9 -bind | split-window -h -c "#{pane_current_path}" -bind - split-window -v -c "#{pane_current_path}" +bind | split-window -h #-c "#{pane_current_path}" +bind - split-window -v #-c "#{pane_current_path}" # reload config file bind r source-file ~/.tmux.conf \; display "Config Reloaded!" + +# copy/paste improvements :: NOT WORKING PROPERLY NOW +#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" diff --git a/vim/vimrc b/vim/vimrc index d58cae9..2aced75 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -91,11 +91,11 @@ nnoremap h :set nohlsearch! " Edit dotfiles with d " v is for vim -nnoremap dv :tabnew ~/.vimrc +nnoremap dv :tabnew ~/.dotfiles/vim/vimrc " b is for bash -nnoremap db :tabnew ~/.bashrc +"nnoremap db :tabnew ~/.dotfiles/bash/bashrc " t is for tmux -nnoremap dt :tabnew ~/.tmux.conf +nnoremap dt :tabnew ~/.dotfiles/tmux/tmux.conf " d is for dotfiles install script nnoremap dd :tabnew ~/.dotfiles/install.conf.yaml