From c3672309ea0e3c75ee23e0e272b07e15a5ff2d33 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 10 Mar 2019 19:23:57 +0100 Subject: [i3] Make 'workspace gw' work with number 10 --- bin/.local/bin/workspace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/.local/bin/workspace b/bin/.local/bin/workspace index 522ce64..1d82071 100755 --- a/bin/.local/bin/workspace +++ b/bin/.local/bin/workspace @@ -41,7 +41,7 @@ act_on_workspace() { [[ $1 = 'n' ]] && new_number=$(( (11+focused_number+1) % 11 )) [[ $1 = 'p' ]] && new_number=$(( (11+focused_number-1) % 11 )) - next=$(echo "${workspaces}" | awk '$1=='$new_number' {print $2}') + next=$(echo "${workspaces}" | sort -n | awk '$1=='$new_number' {print $2}') echo $next i3-msg rename workspace to "${new_number}":"${focused_name}" -- cgit v1.2.3