Bells and typing audio
Choose how Moth alerts you, and whether it makes a sound while you type.
Terminal bell
Choose View → Bell to use a visual bell, a sound, both, or neither. Visual is the default. The visual effect can highlight the pane border, flash the pane softly or highlight the whole window border. Preview Bell lets you try it. Reduce Motion keeps the effect still, and very rapid bells are limited.
[bell]
mode = "visual"
style = "border"
intensity = 1.0
thickness = 3.0
sound = "Glass"
volume = 0.5
duration = 0.2
color = ""
badge = true
Set mode to visual, sound, both or off, and style to border, flash or window-border. Intensity and volume run from 0 to 1, border thickness from 1 to 12 points, and duration from 0.08 to 1 second. Leave color empty to use the accent colour, or enter six hex digits. For sound, choose a system sound such as Glass, Ping or Pop, or give an absolute path to an audio file.
The Dock badge counts bells even when their visual effects are limited. It clears when you activate Moth or choose View → Bell → Clear Bell Badge. Turning the bell off suppresses its notifications. You can test it from a shell with:
printf '\a'
Typing sounds
Settings → Keyboard Sounds includes Drips, Tinks, Wood, Soft Keys, Glass, Pluck, Bells and Marimba. You can also use your own audio files. Typing sounds start off disabled, with the volume set to 12%; ⌘⌥K switches them on or off.
Sounds play when you type in a terminal. Shortcuts using Command or Control, navigation keys, pasted text and read-only previews stay quiet. The reverb control blends the sound with a stereo hall effect, and volume adjusts the final output after reverb. Switching sounds off stops playback and clears the reverb tail.
[keyboardSound]
enabled = false
style = "drip"
volume = 0.12
reverb = 0.15
musical = false
key = "C"
mode = "lydian"
pattern = "random"
files = []
For style, use drip, tink, wood, notes, glass, pluck, bells, marimba or custom. The notes option is called Soft Keys in Settings.
Musical behaviour and custom clips
Musical playback is optional and starts off disabled. Choose a key and one of the seven modes: ionian, dorian, phrygian, lydian, mixolydian, aeolian or locrian. Notes can ascend, descend, play randomly or arpeggiate. The arpeggio follows scale degrees 1, 3, 5, 7, 5, 3; key names use sharps for the twelve chromatic notes.
Choose Files… lets you select up to sixteen audio clips in formats your Mac can decode. Each can be up to ten seconds long and 32 MB. If you select several, Moth rotates through them in order. The files are decoded and cached locally, and their paths are stored as absolute paths.
With musical playback off, a clip keeps its original pitch and speed. With it on, Moth treats the recording as C4 and changes its playback rate to fit the scale, so duration changes along with pitch. Use Try Sound or Try Sequence to hear it, even while typing sounds are disabled.