aboutsummaryrefslogtreecommitdiff
path: root/linux/tmux.conf.m4
diff options
context:
space:
mode:
Diffstat (limited to 'linux/tmux.conf.m4')
-rw-r--r--linux/tmux.conf.m412
1 files changed, 9 insertions, 3 deletions
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