aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2021-09-17 11:24:32 -0600
committerAlexis Hovorka <[email protected]>2021-09-17 11:24:32 -0600
commit7a106fc2bd2a18d68d4d2173dd8233fef8b5469a (patch)
treed9196bd1f7b8980860608f2e4c2ad027ab84d8af /base
parentdcf8f3b48c126f23afe0f41f688b307135050564 (diff)
[feat] Add prefix indicator to termux status
Diffstat (limited to 'base')
-rw-r--r--base/tmux.conf2
-rwxr-xr-xbase/tmux/status3
2 files changed, 3 insertions, 2 deletions
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"