Skip to content

Commit

Permalink
Fancy sun-moon tmux status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
srushti committed May 13, 2016
1 parent a3d0176 commit 2b7cac5
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ setw -g monitor-activity on
set -g visual-activity on

# set the status line's colors
set -g status-fg white
set -g status-bg black
#set -g status-fg white
#set -g status-bg black

# set the color of the window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
#setw -g window-status-fg cyan
#setw -g window-status-bg default
#setw -g window-status-attr dim


## CHECK
# set colors for the active window
# START:activewindowstatuscolor
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
#setw -g window-status-current-fg white
#setw -g window-status-current-bg red
#setw -g window-status-current-attr bright
# END:activewindowstatuscolor

# pane colors
Expand All @@ -59,17 +59,17 @@ set -g message-attr bright

# Status line left side
# START:statusleft
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
#set -g status-left-length 40
#set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# END:statusleft

#START:utf8
set -g status-utf8 on
#set -g status-utf8 on
#END:utf8

# Center the window list
# START:centerwindowlist
set -g status-justify centre
#set -g status-justify centre
# END:centerwindowlist

source ~/.bin/tmux.powerline.conf
Expand All @@ -86,3 +86,22 @@ bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"


# Status bar settings adapted from powerline
set -g status on
set -g status-interval 10
set -g status-fg colour231
set -g status-bg colour234
set -g status-left-length 20
set -g status-left '#{?client_prefix,#[fg=colour254]#[bg=colour31]#[bold],#[fg=colour16]#[bg=colour254]#[bold]} #S #{?client_prefix,#[fg=colour31]#[bg=colour234]#[nobold],#[fg=colour254]#[bg=colour234]#[nobold]}>'
set -g status-right '#(eval cut -c3- ~/.tmux.conf | sh -s status_right) #h '
set -g status-right-length 150
set -g window-status-format "#[fg=colour244,bg=colour234]#I #[fg=colour240]🌑 #[default]#W "
set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I 🌕 #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
set -g window-status-last-style fg=colour31
set-window-option -g window-status-fg colour249
set-window-option -g window-status-activity-attr none
set-window-option -g window-status-bell-attr none
set-window-option -g window-status-activity-fg yellow
set-window-option -g window-status-bell-fg red

0 comments on commit 2b7cac5

Please sign in to comment.