From 7a106fc2bd2a18d68d4d2173dd8233fef8b5469a Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Fri, 17 Sep 2021 11:24:32 -0600 Subject: [feat] Add prefix indicator to termux status --- base/tmux.conf | 2 +- base/tmux/status | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'base') diff --git a/base/tmux.conf b/base/tmux.conf index 17868df..fb08eeb 100644 --- a/base/tmux.conf +++ b/base/tmux.conf @@ -24,7 +24,7 @@ set -g status-left-length 50 set -g status-right-length 30 set -g status-style "fg=colour8,bg=colour18" set -g status-left "#(bash ~/.tmux/status)" -set -g status-right "#[fg=colour19]#[bg=colour19,fg=colour7] %a %m.%d %R 💜" +set -g status-right "#[fg=colour19]#[bg=colour19,fg=colour7] %a %m.%d %R #[fg=colour8]#{?client_prefix,#[bg=colour8]💛,💜}" set -g window-status-format "#{?#W,#W,#I}#{?window_zoomed_flag,+,} #[default,fg=colour19]" set -g window-status-current-format "#{?#W,#W,#I}#{?window_zoomed_flag,+,} #[nobold,fg=colour19]" set -g window-status-current-style "fg=colour4,bold" diff --git a/base/tmux/status b/base/tmux/status index bb2ad9e..e96d10c 100755 --- a/base/tmux/status +++ b/base/tmux/status @@ -30,6 +30,7 @@ if tmux showenv TMUX_SHOW_TASK &>/dev/null; then TASKLINE="$TASKCOUNT $TOPTASK. $(task $TASKCFG _get ${TOPTASK}.description) " else TASKLINE=""; fi -STATUS="$TASKLINE#[fg=colour19]#[bg=colour19,fg=colour7] %a %m.%d %R 💜" +STATUS="$TASKLINE#[fg=colour19]#[bg=colour19,fg=colour7] %a %m.%d %R" +STATUS="$STATUS #[fg=colour8]#{?client_prefix,#[bg=colour8]💛,💜}" tmux set -g status-right-length "$(echo "$STATUS" | wc -c)" tmux set -g status-right "$STATUS" -- cgit v1.2.3-70-g09d2