From 280f7799be30cba8fa893b489c49ac511cefe229 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 Sep 2025 00:26:00 +0200 Subject: Tmux config changes --- linux/home/.config/tmux/tmux_number.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 linux/home/.config/tmux/tmux_number.sh (limited to 'linux/home/.config/tmux/tmux_number.sh') diff --git a/linux/home/.config/tmux/tmux_number.sh b/linux/home/.config/tmux/tmux_number.sh new file mode 100755 index 0000000..5d239d0 --- /dev/null +++ b/linux/home/.config/tmux/tmux_number.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -x +dest="$1" +[ "x""$dest" != "x" ] +tmux list-windows -F "#{window_index}" | grep "^${dest}$" 2>&1 >/dev/null +ret="$?" +if [ "x""$ret" = "x0" ]; then + tmux swap-window -t ":${dest}" +else + tmux move-window -t ":${dest}" +fi -- cgit v1.2.3