![]() loglevel - (optional) log level for the hs.logname - (optional) name of the hs.logger instance for the new switcher 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. this parameter allows you to have multiple switcher 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.(]]) -> hs.window.switcher objectĬreates a new switcher instance it can use a windowfilter to determine which windows to show Shows the switcher (if not yet visible) and selects the previous window the switcher will be dismissed (and the selected window focused) when all modifier keys are released.Shows the switcher (if not yet visible) and selects the next window Methods - API calls which can only be made on an object returned by a constructorĪllows customization of the switcher behaviour and user interface.Constructors - API calls which return an object, typically one that offers API methods.Functions - API calls offered directly by the extension.HotSwitch-HS uses Hammerspoon, and is rewritten for a substitution of HotSwitch. function moveWindowToDisplay (d) return function () local displays. It provides fastest window switching, no matter how many windows there are. You can use Hammerspoon to configure hotkeys, act as a window manager, set timers, track your time, automate tasks, create desktop widget and more. The malleable nature of Hammerspoon gives it a lot of power, but it also makes it hard to describe. Hitting CTRL + ALT + CMD + 3 moves the currently focused window to display 3, same as if you would choose 'Display 3' in the Dock's Option menu. Hammerspoon does this by exposing a large variety of macOS functionality via a clean Lua interface. Hs.hotkey.bind('alt-shift','tab','Prev window',hs.,nil,hs.) API Overview The hs.window:moveToScreen function moves to a given screen, where it's possible to set the UUID. you can also bind to `repeatFn` for faster traversing ![]() Hs.hotkey.bind('alt','tab','Next window',hs.) previousWindow() directly (same as hs.():next()) Hs.hotkey.bind('alt-shift','tab','Prev window',function()switcher:previous()end) Hs.hotkey.bind('alt','tab','Next window',function()switcher:next()end) bind to hotkeys WARNING: at least one modifier key is required! Switcher_space = hs.(hs.():setCurrentSpace(true):setDefaultFilter - specialized switcher for your dozens of browser windows :) Switcher = hs.() - default windowfilter: only visible windows, all Spaces loglevel - (optional) log level for the hs.Hammerspoon docs: hs.window.switcher docs » hs.window.switcher.Switcher instances with different behaviour (for example, with and without thumbnails and/or titles) Must follow the conventions described in hs. this parameter allows you to have multiple uiPrefs - (optional) a table to override UI preferences for this instance its keys and values.windowfilter - (optional) if omitted or nil, use the default windowfilter otherwise it must be a windowfilter.hs.showSelectedTitle = true - show larger title for the currently selected window.hs.showSelectedThumbnail = true - show a larger thumbnail for the currently selected window.hs.thumbnailSize = 128 - size of window thumbnails in screen points.hs.showThumbnails = true - show window thumbnails.Switcher_space = hs.(hs.():setCurrentSpace(true):setDefaultFilter Hammerspoon docs: hs.window.switcher docs » hs.window.switcher
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |