Skip to content

Commit

Permalink
changed layout, colors, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
napalm255 committed Dec 12, 2014
1 parent 414e496 commit 0fc5a6d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 23 deletions.
6 changes: 6 additions & 0 deletions plugins/datetime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Print the current date and time.

run_plugin() {
date +"%a, %b %d %Y @ %I:%M:%S"
return 0
}
14 changes: 6 additions & 8 deletions themes/default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ POWERTMUX_SEPARATOR_LEFT_THIN="❮"
POWERTMUX_SEPARATOR_RIGHT_BOLD=""
POWERTMUX_SEPARATOR_RIGHT_THIN=""

POWERTMUX_DEFAULT_BACKGROUND_COLOR=${POWERTMUX_DEFAULT_BACKGROUND_COLOR:-'235'}
POWERTMUX_DEFAULT_BACKGROUND_COLOR=${POWERTMUX_DEFAULT_BACKGROUND_COLOR:-'236'}
POWERTMUX_DEFAULT_FOREGROUND_COLOR=${POWERTMUX_DEFAULT_FOREGROUND_COLOR:-'255'}

POWERTMUX_DEFAULT_LEFTSIDE_SEPARATOR=${POWERTMUX_DEFAULT_LEFTSIDE_SEPARATOR:-$POWERTMUX_SEPARATOR_RIGHT_BOLD}
Expand All @@ -15,18 +15,16 @@ POWERTMUX_DEFAULT_RIGHTSIDE_SEPARATOR=${POWERTMUX_DEFAULT_RIGHTSIDE_SEPARATOR:-$
# Format: plugin_name background_color foreground_color [non_default_separator]
if [ -z $POWERTMUX_LEFT_STATUS_PLUGINS ]; then
POWERTMUX_LEFT_STATUS_PLUGINS=(
"tmux_session_info 148 234" \
"hostname 33 0" \
"lan_ip 24 255 ${POWERTMUX_SEPARATOR_RIGHT_THIN}" \
"wan_ip 24 255" \
"tmux_session_info 252 0" \
"hostname 239 255" \
)
fi

if [ -z $POWERTMUX_RIGHT_STATUS_PLUGINS ]; then
POWERTMUX_RIGHT_STATUS_PLUGINS=(
"lan_ip 239 255" \
"wan_ip 239 255 ${POWERTMUX_SEPARATOR_LEFT_THIN}" \
"battery 137 127" \
"date_day 235 136" \
"date 235 136 ${POWERTMUX_SEPARATOR_LEFT_THIN}" \
"time 235 136 ${POWERTMUX_SEPARATOR_LEFT_THIN}" \
"datetime 252 0" \
)
fi
39 changes: 24 additions & 15 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,38 @@ set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-justify "left"
set-option -g status-left-length 60
set-option -g status-left-length 90
set-option -g status-right-length 90
set-option -g status-left "#(/opt/git/powertmux/powertmux.sh left)"
set-option -g status-right "#(/opt/git/powertmux/powertmux.sh right)"
set-option -g status-keys vi
set-option -g display-time 2000

# color
set-option -g status-fg colour136 #yellow
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136
set-option -g status-bg colour236
set-option -g status-attr default
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg colour234
set-window-option -g window-status-attr dim
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg colour232
set-window-option -g window-status-current-attr bright
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange

set-window-option -g window-status-attr none
set-window-option -g window-status-bg colour238
set-window-option -g window-status-fg colour136
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour236,reverse]"
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"

set-window-option -g window-status-current-attr none
set-window-option -g window-status-current-bg colour33
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-format "#[fg=colour236]#[default,fg=colour231,bold] #I #[default,fg=colour236,reverse]"
set-window-option -g window-status-current-format "#[fg=colour236]#[default,bold] #I #[fg=colour117,reverse]#[default]#[bg=colour117] #W #[fg=colour236,reverse]"

set-option -g pane-border-fg colour235
set-option -g pane-active-border-fg colour240

set-option -g message-bg colour235
set-option -g message-fg colour166

set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166

# reload settings
bind-key R \
Expand Down

0 comments on commit 0fc5a6d

Please sign in to comment.