From c163ded79bb284c2b2bc1ed8fdddfcb8ede60806 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Wed, 10 Apr 2024 21:21:26 +0200 Subject: Add some indicators --- linux/tmux.conf.m4 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'linux/tmux.conf.m4') diff --git a/linux/tmux.conf.m4 b/linux/tmux.conf.m4 index 63de4ae..a781d9f 100644 --- a/linux/tmux.conf.m4 +++ b/linux/tmux.conf.m4 @@ -49,9 +49,6 @@ bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xc set -g visual-bell on set -g bell-action any -# Scroll in shell -set -g mouse on - # Sync panes bind-key = set-window-option synchronize-panes @@ -93,6 +90,15 @@ bind -n M-C-i display-popup -E "nvim -c 'e ~/Nextcloud/wiki/I45/Hendelser.md' -c bind-key T run-shell "toggle-theme" +m4_changequote({, })m4_dnl +m4_ifelse(DT_DOTFILES_TYPE, {local}, { +set-hook -g session-window-changed 'run-shell "update-theme"' +set-hook -g window-renamed 'run-shell "update-theme"' +bind-key P run-shell "tmux display-message -p '#W' | grep -q '^PROD' || tmux rename-window 'PROD #{window_name}'" +bind-key S run-shell "tmux display-message -p '#W' | grep -q '^STAGING' || tmux rename-window 'STAGING #{window_name}'" +})m4_dnl +m4_changequote(`, ')m4_dnl + # -- Theme -------------------------------------------------------------------- m4_ifelse(DT_DOTFILES_TYPE, `local', `m4_dnl set -g status-justify left -- cgit v1.2.3