aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-06-12 22:28:00 +0200
committersrdusr <trevorgray@srdusr.com>2023-06-12 22:28:00 +0200
commite5c6896ebe60e4f476b20dcc486dcf837160a18d (patch)
tree942ee117111ae8fbf437e11eeb92a951f7bfec39
parent93d8aecd32fa3b8954aa707678166567eb2970a9 (diff)
downloaddotfiles-e5c6896ebe60e4f476b20dcc486dcf837160a18d.tar.gz
dotfiles-e5c6896ebe60e4f476b20dcc486dcf837160a18d.zip
Uncommented custom status with new vi-mode colors
-rw-r--r--.config/tmux/tmux.conf52
1 files changed, 28 insertions, 24 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 99fd2fc..5d6a5e5 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -182,39 +182,43 @@ setw -g window-style fg=colour240
setw -g window-active-style fg=white
-#――――――――――――――――――――――――――――――――――――――――――
+#
### Status ###
-#set -g status-position bottom # [top, bottom]
-#set -g status on
+set -g status-position bottom # [top, bottom]
+set -g status on
#set -g status-interval 1
-#set -g status-style fg=#50fa7b,bg=default
-#
-### Left
-##set -g status-left ""
-#set -g status-left-length 60
+set -g status-interval 500
+set -g status-style fg=#50fa7b,bg=default
+
+## Left
+#set -g status-left ""
+set -g status-left-length 60
#set -g status-left "#[fg=#50fa7b,bg=default]#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]"
-#
-### Centre
+set -g status-left "#(cat ~/.vi-mode | awk '/-- NORMAL --/ {print \"#[fg=#39BAE6]#[bg=default]#[bg=#39BAE6,fg=black] ❐ #S #[fg=#39BAE6,bg=default]\"} /-- INSERT --/ {print \"#[fg=#50fa7b]#[bg=default]#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]\"}')"
+
+## Centre
#set -g window-status-current-format "#[bg=default,fg=#50fa7b]#[fg=black,bg=#50fa7b] #I:#W #[bg=default,fg=#50fa7b]"
-#set -g status-justify absolute-centre
-#
-### Right
-#set-option -g status-right ""
-#set -g status-right-length 60
+set -g window-status-current-format "#(cat ~/.vi-mode | awk '/-- NORMAL --/ {print \"#[fg=#39BAE6]#[bg=default]#[fg=black,bg=#39BAE6] #I:#W #[bg=default,fg=#39BAE6]\"} /-- INSERT --/ {print \"#[fg=#50fa7b]#[bg=default]#[fg=black,bg=#50fa7b] #I:#W #[bg=default,fg=#50fa7b]\"}')"
+set -g status-justify absolute-centre
+
+## Right
+set-option -g status-right ""
+set -g status-right-length 60
#set -g status-right "#[fg=#50fa7b,bg=default] #{?client_prefix,#[reverse] Prefix #[noreverse] ,} #[bg=default,fg=#50fa7b]#[bg=#50fa7b,fg=black] %H:%M #[bg=default,fg=#50fa7b]"
-#
-### Reload Status with IP addr, Cpu, Mem and Date
-#bind a run-shell ~/.config/tmux/tmux-toggle-option.sh
-#
-### Reload Config/Status silently
-#bind b source-file ~/.config/tmux/tmux.conf
+set -g status-right "#(cat ~/.vi-mode | awk '/-- NORMAL --/ {print \"#[fg=#39BAE6]#[bg=default]#[bg=#39BAE6,fg=black] %H:%M #[bg=default,fg=#39BAE6]\"} /-- INSERT --/ {print \"#[fg=#50fa7b]#[bg=default]#[bg=#50fa7b,fg=black] %H:%M #[bg=default,fg=#50fa7b]\"}')"
-set-option -g default-shell "/usr/bin/zsh"
+#set -g status-right "#[fg=white,bg=black]#(cat ~/.vi-mode)"
+#set -g status-right "#[fg=white,bg=black]#(cat ~/.vi-mode | awk '/-- NORMAL --/ {print \"#[fg=blue]#[bg=black]-- NORMAL --\"} /-- INSERT --/ {print \"#[fg=green]#[bg=black]-- INSERT --\"}')"
-set -g status-interval 500
-set -g status-right "#[fg=white,bg=black]#(cat ~/.vi-mode)"
+## Reload Status with IP addr, Cpu, Mem and Date
+bind a run-shell ~/.config/tmux/tmux-toggle-option.sh
+
+## Reload Config/Status silently
+bind b source-file ~/.config/tmux/tmux.conf
+
+set-option -g default-shell "/usr/bin/zsh"
#――――――――――――――――――――――――――――――――――――――――――