added layout existance check
This commit is contained in:
parent
3dc873a755
commit
4f24f133b7
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ fi
|
|||
|
||||
LAYOUT_FILE=$LAYOUT_PATH/layout-"$LAYOUT_NAME".json
|
||||
|
||||
if [ ! -f "$LAYOUT_FILE" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# get current workspace ID
|
||||
WORKSPACE_ID=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num' | cut -d"\"" -f2)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue