Skip to content
/ conhonk Public

Make your console beep according to the provided frequency and duration.

License

Notifications You must be signed in to change notification settings

kiedtl/conhonk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conhonk Build Status

Make your console beep according to the provided frequency and duration.

Installation

  • Try using Scoop.
    • First, add the LPTSTR-Scoop bucket (if you haven't already):
      $ scoop bucket add lptstr https://github.com/lptstr/lptstr-scoop
      
    • Now install the application:
      $ scoop install conhonk
      
  • If you aren't interested in using a package manager, just download painter.exe from the latest release in the latest releases section.

Usage

$ ./conhonk --frequency <freq> --duration <milliseconds>
Option Short Default Description
--frequency -f 800 The frequency of the tone to be emitted
--duration -d 200 The duration (in milleseconds) of the tone to be emitted

E.g. To beep for 5 seconds on a frequency of 800, run

$ ./conhonk --frequency 800 --duration 5000

The above could be shortened to:

$ ./conhonk -d 5000

Pranks

Add this code to somebody's PowerShell profile:

while ($true) {
  ./conhonk -f 80000 -d 5000
}

Inspiration

  • none