![]() Call this function if you need to make sure the modal is exited without waiting for the user to press esc.Hides the expose, if visible, and exits the modal mode Hs.expose.ui or the uiPrefs parameter to change these behaviours. by default expose will show invisible windows and (unlike the OSX expose) windows from other spaces use.loglevel - (optional) log level for the hs.logger instance for the new expose.logname - (optional) name of the hs.logger instance for the new expose if omitted, the class logger will be used.uiPrefs - (optional) a table to override UI preferences for this instance its keys and values must follow the conventions described in hs.expose.ui this parameter allows you to have multiple expose instances with different behaviour (for example, with and without thumbnails and/or titles) using different hotkeys.windowfilter - (optional) if omitted or nil, use the default windowfilter otherwise it must be a windowfilter instance or constructor table.Hs.expose.new(]]) -> hs.expose objectĬreates a new hs.expose instance it can use a windowfilter to determine which windows to show Methods - API calls which can only be made on an object returned by a constructorĪllows customization of the expose behaviour and user interface.Constructors - API calls which return an object, typically one that offers API methods.Hs.hotkey.bind('ctrl-cmd-shift','e','App Expose',function()expose_app:toggleShow()end) Hs.hotkey.bind('ctrl-cmd','e','Expose',function()expose:toggleShow()end) Hs.expose.ui.fitWindowsInBackground=falseĮxpose = hs.expose.new(nil, - specialized expose using a custom windowfilter This could adversely affect overall performance you can disable this behaviour with Be aware that on particularly heavy Hammerspoon configurations To improve responsiveness, this module will update its thumbnail layout in the background (so to speak), so that itĬan show the expose without delay on invocation. Hint length, colors, fonts and sizes, whether to show window thumbnails and/or titles, and more. Windows residing in other Mission Control Spaces, or only windows for the current application. Additionally, each expose instance can be customized to include or exclude minimized or hidden windows, When used in combination with a windowfilter you can include or exclude specific apps, window titles, screens, ( shift by default) any window without having to focus it first. Window in conjunction with keyboard modifiers, you can additionally minimize ( alt by default) or close With this module you can configure a hotkey to show thumbnails for open windows when invoked each thumbnail will haveĪn associated keyboard "hint" (usually one or two characters) that you can type to quickly switch focus to that Should you encounter any issues, please feel free to report them on Warning: this module is still somewhat experimental. Keyboard-driven expose replacement/enhancement switcher_space.ui.Hammerspoon docs: hs.expose docs » hs.expose In case it is rather slow, try turning of thumbnails and set the animation duration to 0. Hs.hotkey.bind('alt-shift','tab','Prev window',function()switcher_space:previous()end)Īnd one can happily switch between windows in the current space using alt+ tab and alt+ shift+ tab. ![]() ![]() Hs.hotkey.bind('alt','tab','Next window',function()switcher_space:next()end) Using hs.window.switcher one just adds (as mentioned in the docs) to the a switcher_space = hs.(hs.():setCurrentSpace(true):setDefaultFilter) What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine. This is a tool for powerful automation of OS X. Aside, it can do much more than just window switching! I am surprised / shocked that nobody mentioned hammerspoon. See also this question, where I posted the same answer.
0 Comments
Leave a Reply. |