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
  • None
Returns
  • void
Source Source/VolumeScroll.spoon/init.lua line 19
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
Source Source/VolumeScroll.spoon/init.lua line 83
start
Signature VolumeScroll:start()
Type Method
Description

Start event watcher.

Parameters
  • mods - a table containing the modifiers to bind in scrolling
Returns
  • void
Source Source/VolumeScroll.spoon/init.lua line 33
stop
Signature VolumeScroll:stop()
Type Method
Description

Stop the scroll watcher

Parameters
  • None
Returns
  • void
Source Source/VolumeScroll.spoon/init.lua line 70
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
Source Source/VolumeScroll.spoon/init.lua line 107