tmux.conf

This commit is contained in:
2015-12-06 11:12:03 +01:00
parent 808c31f53e
commit c0d34f5137
2 changed files with 31 additions and 8 deletions

View File

@@ -60,9 +60,9 @@ def install_vim(pdotfiles, force=False):
def install_tmux(pdotfiles, force=False): def install_tmux(pdotfiles, force=False):
phome = Path(os.path.expanduser("~")).resolve() 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: try:
pdotfiles_tmuxrc = pdotfiles.resolve().relative_to(phome.resolve()) / preltmuxrc 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 phome_tmuxrc.unlink() # only kill symlinks
if phome_tmuxrc.exists(): if phome_tmuxrc.exists():
print('.tmuxrc already there!') print('.tmux.conf already there!')
else: else:
print("Symlinking {} to {}".format(phome_tmuxrc, pdotfiles_tmuxrc)) print("Symlinking {} to {}".format(phome_tmuxrc, pdotfiles_tmuxrc))
phome_tmuxrc.symlink_to(pdotfiles_tmuxrc) phome_tmuxrc.symlink_to(pdotfiles_tmuxrc)

View File

@@ -6,9 +6,32 @@ unbind %
bind | split-window -h bind | split-window -h
bind - split-window -v bind - split-window -v
set -g window-status-current-bg red ### set status line appearance
set -g status-utf8 on
set -g status-fg white set -g status-fg white
set -g status-bg blue set -g status-bg black
setw -g monitor-activity on set -g status-left-length 28
set -g visual-activity on ### 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