Skip to content

leep-frog/what-the-beep

Repository files navigation

What The Beep?!

This extension provides the capability to play an audio file on registered key presses or, more notably, as a notification mechanism with VS Code tooling.

Supported Audio Files

This extension uses the NodeJS sound-play package under the hood and, therefore, supports all audio extensions supported by that library.

Currently, it supports .mp3, .wav, and other extension files (depending on OS type).

Only Windows and Mac OS are currently supported.

Usage

Beep via Keybinding

See the below keybindings.json file for example usage:

{
  // Make a beep sound
  {
    "command": "what-the-beep.beep",
    "key": "ctrl+shift+b"
  },

  // Play a specific audio file
  {
    "command": "what-the-beep.beep",
    "args": {
      "file": "/path/to/your/file.wav",
    },
    "key": "...",
  },

  // Play a builtin sound
  {
    "command": "what-the-beep.beep",
    "args": {
      // This can be one of break, error, laser, success, warning
      "builtin": "laser",
    },
    "key": "...",
  },
}

Beep via Automated Processes

Simply use the provided command in your workflow or other extension logic to play these audio files:

// Play a built-in audio sound
vscode.commands.executeCommand(`what-the-beep.beep`, {
  builtin: 'error',
});

// Play a provided audio file
vscode.commands.executeCommand(`what-the-beep.beep`, {
  file: '/path/to/file.mp3'
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published