Skip to content

Instantly share code, notes, and snippets.

@meskarune
Last active April 10, 2021 21:35
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save meskarune/ef3ed0f15ca5d423627ef9b9a54227ab to your computer and use it in GitHub Desktop.
Save meskarune/ef3ed0f15ca5d423627ef9b9a54227ab to your computer and use it in GitHub Desktop.
simple tmux theme
set -g pane-active-border-bg default
set -g pane-active-border-fg "colour14"
set -g pane-border-fg "colour239"
set -g message-fg black
set -g message-bg "colour14"
set -g status-justify left
set -g status-bg "colour236"
set -g status-fg "colour14"
setw -g clock-mode-colour "colour14"
setw -g status-left " #S "
setw -g status-left-fg black
setw -g status-left-bg "colour14"
set -g status-right-length "100"
# 24 hour time: `%H:%M`
# 12 hour time: `%-I:%M %p`
set -g status-right "#[bg=colour239]#[fg=white] %a %B %-d, %Y #[fg=colour14].:. #[fg=white]%H:%M #[fg=black,bg=colour14] #h "
setw -g window-status-format " #I: #W "
# separator symbols: ┃ ║ │ ❮ ❯ ╲ ╱ left bar: ⎸ right bar: ⎹
setw -g window-status-separator ""
setw -g window-status-fg "colour14"
setw -g window-status-current-fg white
setw -g window-status-current-bg "colour239"
setw -g window-status-current-format "#[fg="colour14"] #[fg=white]#I: #W#[fg=colour14] "
setw -g window-status-bell-fg "colour9"
setw -g window-status-activity-fg yellow
@meskarune
Copy link
Author

meskarune commented Nov 20, 2016

The screenshot below shows bell and activity colors. The time format above is 24h time but below I am using 12h with:

%-I:%M %p

instead of:

%H:%M

screenshot of tmux theme

I name the above file ~/.tmux_theme and include it in ~/tmux.conf by adding this to the top:

if-shell "test -f ~/.tmux_theme" "source ~/.tmux_theme"

@varaskkar
Copy link

This seems very pretty, it's <3

@dovydas55
Copy link

Very nice!

@lemon-clown
Copy link

maybe the #h can replaced by #(whoami). :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment