From 15659c5bac16417cdece907c775359e1d5d81b42 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 25 Apr 2017 11:54:01 -0600 Subject: Updating for bottom drawer functionality --- window_renum.sh | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 window_renum.sh (limited to 'window_renum.sh') diff --git a/window_renum.sh b/window_renum.sh deleted file mode 100755 index 19e5825..0000000 --- a/window_renum.sh +++ /dev/null @@ -1,15 +0,0 @@ -for session in $(tmux ls | awk -F: '{print $1}') ; do - active_window=$(tmux lsw -t ${session} | awk -F: '/\(active\)$/ {print $1}') - inum=1 - for window in $(tmux lsw -t ${session} | awk -F: '{print $1}') ;do - if [ ${window} -gt ${inum} ] ;then - echo "${session}:${window} -> ${session}:${inum}" - tmux movew -d -s ${session}:${window} -t ${session}:${inum} - fi - if [ ${window} = ${active_window} ] ;then - new_active_window=${inum} - fi - inum=$((${inum}+1)) - done - tmux select-window -t ${session}:${new_active_window} -done -- cgit v1.2.3