aboutsummaryrefslogtreecommitdiff
path: root/window_renum.sh
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-04-25 11:54:01 -0600
committerCody Hiar <codyfh@gmail.com>2017-04-25 11:54:01 -0600
commit15659c5bac16417cdece907c775359e1d5d81b42 (patch)
treebd56a46f87300433324d303d443f4e1f21d2b8eb /window_renum.sh
parentb31357b40b3ad7101e78366b923e22833cb649d1 (diff)
Updating for bottom drawer functionality
Diffstat (limited to 'window_renum.sh')
-rwxr-xr-xwindow_renum.sh15
1 files changed, 0 insertions, 15 deletions
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