diff options
author | Urbain Vaes <urbain@vaes.uk> | 2019-03-10 19:23:57 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2019-03-11 16:06:02 +0100 |
commit | c3672309ea0e3c75ee23e0e272b07e15a5ff2d33 (patch) | |
tree | 0ca93ecdaa5fe2fed2bad4878edad434c0131d8b /bin/.local | |
parent | b265b484c6a5f6d5b9d04efa4fb6dc0d433866de (diff) |
[i3] Make 'workspace gw' work with number 10
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}" |