docs » VolumeScroll

Use mouse scroll wheel and modifiers to adjust volume.

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

API Overview

API Documentation

Methods

init
Signature VolumeScroll:init()
Type Method
Description

Initialize spoon

Parameters:

Returns:

  • void
sameMods
Signature VolumeScroll:sameMods()
Type Method
Description

Determine if a table of modifiers are the same modifiers passed into :start()

Parameters:

  • mods - a table of modifiers

Returns:

  • boolean - true if mods are same, false otherwise
start
Signature VolumeScroll:start()
Type Method
Description

Start event watcher.

Parameters:

  • mods - a table containing the modifiers to bind in scrolling

Returns:

  • void
stop
Signature VolumeScroll:stop()
Type Method
Description

Stop the scroll watcher

Parameters:

Returns:

  • void
tableLength
Signature VolumeScroll:tableLength(T)
Type Method
Description

Determine the number of items in a table

Parameters:

  • T - a table

Returns:

  • number or boolean - the number of items in the table, false if T is not a table