FelixKratz / SbarLua

A Lua API for SketchyBar
GNU General Public License v3.0
151 stars 11 forks source link

Execute Command with SKHD #22

Closed matthewshammond closed 6 months ago

matthewshammond commented 7 months ago

I apologize for putting this in issues, as I could not find the discussions section.

Is it possible to execute an sbar command from the command line? What I want to do is key bind with skhd the toggle swap menus and spaces.

FelixKratz commented 6 months ago

You can simply use the regular shell api even when using lua for all the event handling. I.e. simply running sketchybar --trigger swap_menus_and_spaces will suffice.