aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal/system/programs')
-rw-r--r--modules/terminal/system/programs/tmux.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/terminal/system/programs/tmux.nix b/modules/terminal/system/programs/tmux.nix
index 40d07d1..9307837 100644
--- a/modules/terminal/system/programs/tmux.nix
+++ b/modules/terminal/system/programs/tmux.nix
@@ -45,9 +45,9 @@
'';
scripts.cleanSessions = ''
- current="$(tmux display-message -p '#S')"
+ current="$(tmux display -p '#{session_name}')"
- tmux list-sessions -F '#S' | while read -r line; do
+ tmux list-sessions -F '#{session_name}' | while read -r line; do
if [[ "$line" != "$current" && "$line" =~ ^[[:digit:]]+$ ]]; then
tmux kill-session -t "$line"
fi
@@ -133,7 +133,7 @@
bind-key -n C-S-Tab previous-window # doesn't work in foot :(
set -g renumber-windows on
- set -g allow-rename off
+ set -g allow-rename on
# Statusbar
set-hook -g client-attached 'if -F "#{==:#{session_windows},1}" { set status off } { set status on }'