From c0d34f5137a701601a83069c4d10718360ace2d6 Mon Sep 17 00:00:00 2001 From: Peter Dahlberg Date: Sun, 6 Dec 2015 11:12:03 +0100 Subject: [PATCH] tmux.conf --- install_files.py | 6 +++--- tmux/tmux.conf | 33 ++++++++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/install_files.py b/install_files.py index 287c956..6e64e37 100755 --- a/install_files.py +++ b/install_files.py @@ -60,9 +60,9 @@ def install_vim(pdotfiles, force=False): def install_tmux(pdotfiles, force=False): phome = Path(os.path.expanduser("~")).resolve() - phome_tmuxrc = phome / Path(".tmuxrc") + phome_tmuxrc = phome / Path(".tmux.conf") - preltmuxrc = Path("tmux/tmuxrc") + preltmuxrc = Path("tmux/tmux.conf") try: pdotfiles_tmuxrc = pdotfiles.resolve().relative_to(phome.resolve()) / preltmuxrc @@ -73,7 +73,7 @@ def install_tmux(pdotfiles, force=False): phome_tmuxrc.unlink() # only kill symlinks if phome_tmuxrc.exists(): - print('.tmuxrc already there!') + print('.tmux.conf already there!') else: print("Symlinking {} to {}".format(phome_tmuxrc, pdotfiles_tmuxrc)) phome_tmuxrc.symlink_to(pdotfiles_tmuxrc) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 98f9bf1..4d5b18c 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -6,9 +6,32 @@ unbind % bind | split-window -h bind - split-window -v -set -g window-status-current-bg red -set -g status-fg white -set -g status-bg blue +### set status line appearance +set -g status-utf8 on +set -g status-fg white +set -g status-bg black -setw -g monitor-activity on -set -g visual-activity on +set -g status-left-length 28 +### status-left: @hostname:sessionname +set -g status-left "#[fg=white]@#h#[fg=red]:#S#[fg=white] |" +### status-left: username@hostname:sessionname +#set -g status-left "#[fg=blue]#(echo ${USER})#[fg=white]@#h#[fg=red]:#S#[fg=white] |" + +### status-right: Date and Time +set -g status-right-length 16 +set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M' +### status-right: Time +#set -g status-right-length 6 +#set -g status-right "#[fg=yellow]%H:%M" + +set-window-option -g window-status-fg blue +set-window-option -g window-status-bg black +set-window-option -g window-status-current-attr bold + + +#urxvt tab like window switching (-n: no prior escape seq) +bind -n S-F10 new-window +bind -n S-F11 previous-window +bind -n S-F12 next-window +bind -n S-F9 swap-window -t -1 +bind -n S-F8 swap-window -t +1