rofi call bug fixe, minor changes

This commit is contained in:
2022-11-08 14:58:23 +01:00
parent 0b0ae38add
commit 5253c7e9de
6 changed files with 10 additions and 35 deletions

View File

@@ -18,5 +18,7 @@ if [ $1 -gt 0 ] && [ $1 -lt 43 ]; then
else
usage; exit 1
fi
NEXT_WORKSPACE_NAME=$(i3-msg -t get_workspaces | jq -r ".[] | select(.num==${NEXT_WORKSPACE}).name")
if [ -z "${NEXT_WORKSPACE_NAME}" ]; then NEXT_WORKSPACE_NAME=${NEXT_WORKSPACE}; fi
i3-msg -q "move container to workspace ${NEXT_WORKSPACE}"
i3-msg -q "move container to workspace ${NEXT_WORKSPACE_NAME}"