add quiet mode on i3-msg calls, many fixes on focus_workspace

This commit is contained in:
2020-09-23 17:52:25 +02:00
parent e6dd791934
commit dff01ca7e7
3 changed files with 14 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ OLD_NAME=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name')
WORKSPACE_NUMBER=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')
if [ "${NEW_NAME}" == "" ]; then
i3-msg "rename workspace ${OLD_NAME} to ${WORKSPACE_NUMBER}"
i3-msg -q "rename workspace ${OLD_NAME} to ${WORKSPACE_NUMBER}"
else
i3-msg "rename workspace ${OLD_NAME} to \"${WORKSPACE_NUMBER}: ${NEW_NAME}\""
i3-msg -q "rename workspace ${OLD_NAME} to \"${WORKSPACE_NUMBER}: ${NEW_NAME}\""
fi