![]() 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 Lots of people! You can find out more on our Contributors page.Hammerspoon docs: hs.expose docs » hs.expose If you find a bug, or have a suggestion, you can also file an issue on the issue tracker. You can usually get a quick answer in our IRC channel, #hammerspoon on Libera. For more information, see the contribution guidelines on GitHub.īugs found on can be reported on GitHub Where can I get help? They can either be pure Lua scripts that offer useful helper functions, or you can write Objective-C extensions to expose new areas of system functionality to users. More extensions will always be a huge benefit to Hammerspoon. You can learn more about the Lua scripting language at lua.org. If you are new to Hammerspoon, read the Getting Started Guide with reference to the full API documentation. You will need to create a Lua script in ~/.hammerspoon/a using our APIs and standard Lua APIs. Out of the box, Hammerspoon does nothing. How do I install it?ĭownload the latest release and then drag the application to /Applications/. You might want to do something crazy like have iTunes automatically start playing when your Mac detects you are in Paris. You might want to display an alert when your battery drops below a certain percentage. You might want to run a series of commands when your wifi interface connects to your home network. You might want to bind a keyboard shortcut to a series of window operations, or an applescript. Typically you would write a configuration file in Lua that connects events to actions. If you want to explore the options Hammerspoon offers, check out the Getting Started Guide and the full API documentation as well as the already pre-made plugins called Spoons. You can write Lua code that interacts with macOS APIs for applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, low-level keyboard/mouse events, clipboards, location services, wifi, and more. 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 macOS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |