Set arpeggio beep sounds for entering and exiting keybinding modes. #1249
Unanswered
Giresharu
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Required Program:
nircmd (The download button is at the bottom of the page)
After downloading, place it anywhere and add its directory to your system's PATH environment variable.
You can now use this command to play a beep:
We can achieve an arpeggio effect by sequentially playing multiple beeps with different frequencies.
For example:
The frequencies
783.9911987.771174.661396.91correspond to the notes G B D F, which form a G7 chord.This chord has a sense of "suspense" or "unresolved tension," reminding you that you should exit this state soon.
Conversely, the sequence
1396.911174.66987.771046.50(with the first three notes being F D B followed by C) represents a Bdim resolving to C. This process sounds very comfortable and satisfying.However, simply using
nircmd beepdoes not work well for sequential playback within GlazeWM. If you write multipleshell-execcommands in thecommandarray, the execution efficiency is low, and the intervals between beeps are inconsistent (sometimes fast, sometimes slow). On the other hand, if you write thenircmd beepcommands in a.batfile and call it withshell-exec, a CMD window will flash briefly. I was unsure how to resolve this issue.Therefore, I chose to use VBS to write these two sound effects:
Subsequently, you can play the corresponding sound by adding this line to your
commands:There is an even simpler way: set the default open action for
.vbsfiles to Microsoft Windows Based Script Host, and place the.vbsfiles in a directory that is included in your PATH environment variable.Then you can simply write:
Here is my actual usage effect:
2026-01-17.05-55-16.mp4
Beta Was this translation helpful? Give feedback.
All reactions