docs » WindowScreenLeftAndRight

Move windows to other screens

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowScreenLeftAndRight.spoon.zip

API Overview

API Documentation

Variables

animationDuration
Signature WindowScreenLeftAndRight.animationDuration
Type Variable
Description

Length of the animation to use for the window movements across the screens.

Notes
  • nil means to use the existing value from hs.window.animationDuration. 0 means to disable the animations.
  • Default: nil.
Source Source/WindowScreenLeftAndRight.spoon/init.lua line 40
defaultHotkeys
Signature WindowScreenLeftAndRight.defaultHotkeys
Type Variable
Description

Table containing a sample set of hotkeys that can be assigned to the different operations.

Notes
  • These are not bound by default - if you want to use them you have to call: spoon.WindowScreenLeftAndRight:bindHotkeys(spoon.WindowScreenLeftAndRight.defaultHotkeys) after loading the spoon.
  • Value:
 {
    screen_left = { {"ctrl", "alt", "cmd"}, "Left" },
    screen_right= { {"ctrl", "alt", "cmd"}, "Right" },
 }
Source Source/WindowScreenLeftAndRight.spoon/init.lua line 22
logger
Signature WindowScreenLeftAndRight.logger
Type Variable
Description

Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.

Source Source/WindowScreenLeftAndRight.spoon/init.lua line 17

Methods

bindHotkeys
Signature WindowScreenLeftAndRight:bindHotkeys(mapping)
Type Method
Description

Binds hotkeys for WindowScreenLeftAndRight

Parameters
  • mapping - A table containing hotkey objifier/key details for the following items:
    • screen_left, screen_right - move the window to the left/right screen (if you have more than one monitor connected, does nothing otherwise)
Returns
Source Source/WindowScreenLeftAndRight.spoon/init.lua line 88