diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-07-11 16:04:52 +0000 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-07-11 16:04:52 +0000 |
| commit | f75fd7bdbaacab04b5f4dd4042ad9e6493b3570b (patch) | |
| tree | 2f0594cc5a9c56b9f1ba9b2c677df212340f0a6b /modules | |
| parent | 231dd114ceea8d513d400c53811020f7921a428a (diff) | |
small changes
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/terminal/system/programs/tmux.nix | 6 |
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 }' |
