diff options
Diffstat (limited to 'bin/.local')
-rwxr-xr-x | bin/.local/bin/workspace | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |