Home: https://github.com/asmagill/mjolnir_asm.hydra
This module provides the functionality, as it was in Hydra, for spaces
and hydra.setosxshadows
. As these functions use undocumented APIs, they are grouped together here.
This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.
mjolnir._asm.hydra.undocumented.setosxshadows(bool)
Sets whether OSX apps have shadows.
mjolnir._asm.hydra.undocumented.spaces
Convenience module spaces
containing just the Hydra spaces modules for Mjolnir with simplified names.
e.g.
spaces = require("mjolnir._asm.hydra.undocumented").spaces
spaces.count() -- see spaces_count()
spaces.currentspace() -- see spaces_currentspace()
spaces.movetospace(#) -- see spaces_movetospace(#)
mjolnir._asm.hydra.undocumented.spaces_currentspace() -> number
The index of the space you're currently on, 1-indexed (as usual).
mjolnir._asm.hydra.undocumented.spaces_movetospace(number)
Switches to the space at the given index, 1-indexed (as usual).
Note that this may cause unexpected or odd behavior in spaces changes under 10.9 and 10.10. A more robust solution is being looked into.
mjolnir._asm.hydra.undocumented_spaces.count() -> number
The number of spaces you currently have.