One Keyboard Shortcut for Two Different menu-bar Toggled item

I want to move all my custom system level (→System Preferences→Keyboard→Shortcuts) custom shortcuts to BTT. I have difficulties implementing these kind of shortcut instances:
Screen Shot 2021-01-25 at 11.30.02

Which I implement like this:

But each time I press the shortcut, it only show the option... tooltips? because of duplicated instance of shortcut:
Screen Shot 2021-01-25 at 11.34.04

Is there any way I can implement that shortcut? Thanks before :slight_smile:
P.S. sorry if someone asked this before. I tried to search but cannot find similar question/discussion.

you might be able to use

View;Show Sidebar||Hide Sidebar

the || will make BTT choose the one that is not disabled. However it depends on how the specific menu works. Otherwise you’d need to use some scripting to achieve this.

1 Like

woah, I didn't realize that short-circuit syntax works! now I understand why BTT uses semicolon ; rather than arrow -> like in Apple's preferences. They are expressions!

turns out the solution is a little RTFM :sweat_smile: Thanks @Andreas_Hegenberg!

If I ever encounter this, I'll try reading the manual first, then asking hahaha

1 Like