commit 4be33a5955b8d7d26246d4c6e5fbac79ff5ff6fb
parent f4b7fe8ec1006272ff58fbb52aa668bd89082f6f
Author: Chris Bracken <chris@bracken.jp>
Date: Mon, 13 May 2024 23:18:51 -0700
Use solarized-osaka colour scheme in tmux.
Diffstat:
2 files changed, 41 insertions(+), 12 deletions(-)
diff --git a/.config/tmux/solarized-osaka_moon.tmux b/.config/tmux/solarized-osaka_moon.tmux
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+
+# TokyoNight colors for Tmux
+
+set -g mode-style "fg=#82aaff,bg=#3b4261"
+
+set -g message-style "fg=#82aaff,bg=#3b4261"
+set -g message-command-style "fg=#82aaff,bg=#3b4261"
+
+set -g pane-border-style "fg=#3b4261"
+set -g pane-active-border-style "fg=#82aaff"
+
+set -g status "on"
+set -g status-justify "left"
+
+set -g status-style "fg=#82aaff,bg=#1e2030"
+
+set -g status-left-length "100"
+set -g status-right-length "100"
+
+set -g status-left-style NONE
+set -g status-right-style NONE
+
+set -g status-left "#[fg=#1b1d2b,bg=#82aaff,bold] #S #[fg=#82aaff,bg=#1e2030,nobold,nounderscore,noitalics]"
+set -g status-right "#[fg=#82aaff,bg=#1e2030] #[fg=#82aaff,bg=#3b4261] %Y-%m-%d %H:%M #[fg=#1b1d2b,bg=#82aaff,bold] #h "
+
+setw -g window-status-activity-style "underscore,fg=#828bb8,bg=#1e2030"
+setw -g window-status-separator ""
+setw -g window-status-style "NONE,fg=#828bb8,bg=#1e2030"
+setw -g window-status-format "#[default] #I #W #F #[fg=#1e2030,bg=#1e2030,nobold,nounderscore,noitalics]"
+setw -g window-status-current-format "#[fg=#82aaff,bg=#3b4261,bold] #I #W #F #[fg=#3b4261,bg=#1e2030,nobold,nounderscore,noitalics]"
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -3,8 +3,10 @@
# reduce escape time from 500 to 10ms for better behaviour in vim.
set-option -sg escape-time 10
-# 256 colour terminal.
-set-option -sa terminal-features ',xterm-256color:RGB'
+# 256 colour terminal, underscore, undercurl.
+set-option -as terminal-features ',xterm-256color:RGB' # 256 colour.
+set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl.
+set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
# Enable focus events if supported by the terminal.
set-option -g focus-events on
@@ -28,15 +30,11 @@ bind-key -T prefix \\ split-window -h\; split-window -h\; select-layout even-hor
# disable mouse
set-option -g mouse off
-# status bar
-set-option -g status-fg white
-set-option -g status-bg default
-set-option -g status-left-length 2
-set-option -g status-left '#[fg=green][ '
-set-option -g status-right-length 35
-set-option -g status-right '#[fg=green]] [ #[fg=white]#h #[fg=green]] [ #[fg=white]%Y-%m-%d %H:%M #[fg=green]]'
-set-option -g window-status-current-style fg=yellow,bright
-set-option -g window-status-activity-style none
-
+# Disable automatic window renaming.
set-window-option -g automatic-rename off
+
+# Highlight panes with activity in the status bar.
set-window-option -g monitor-activity on
+
+# Solarized Osaka colour scheme.
+source ~/.config/tmux/solarized-osaka_moon.tmux