mjolnir._asm.watcher.screen

Home: https://github.com/asmagill/mjolnir_asm.watcher

Watch for screen layout changes in Mjolnir.

This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.

new

mjolnir._asm.watcher.screen.new(fn) -> watcher

Creates a new screen-watcher that can be started; fn will be called when your screen layout changes in any way, whether by adding/removing/moving

start

mjolnir._asm.watcher.screen:start() -> watcher

Starts the screen watcher, making it so fn is called each time the screen arrangement changes.

stop

mjolnir._asm.watcher.screen:stop() -> watcher

Stops the screen watcher's fn from getting called until started again.