Replies: 1 comment 2 replies
-
|
This could help you (pulled from @FelixKratz 's setup). Besides activating a space on click, it also lets you name spaces if you right-click or shift-left-click. mouse_clicked() {
if [ "$BUTTON" = "right" ] || [ "$MODIFIER" = "shift" ]; then
SPACE_NAME="${NAME#*.}"
SPACE_LABEL="$(osascript -e "return (text returned of (display dialog \"Rename space $SPACE_NAME to:\" default answer \"\" with title \"Space Renamer\" buttons {\"Cancel\", \"Rename\"} default button \"Rename\"))")"
if [ $? -eq 0 ]; then
if [ "$SPACE_LABEL" = "" ]; then
set_space_label "${NAME:6}"
else
set_space_label "${NAME:6} $SPACE_LABEL"
fi
fi
else
yabai -m space --focus $SID 2>/dev/null
fi
}Also make sure your item is subscribed to You can see how it's implemented over here. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example, I have this on my spaces, will I be able to click on 6th space so that the workspace will switch to 6?
Beta Was this translation helpful? Give feedback.
All reactions