3 ms·
Been thinking about this. Do you have a snippet you can share?
by idreyn 2y ago
Been thinking about this. Do you have a snippet you can share?
- aendruk 2y agoZSH plugin: _click_preexec() { _click_start_seconds=${_click_start_seconds:-$SECONDS} } _click_precmd() { [[ $+_click_start_seconds ]] || return if (( SECONDS - _click_start_seconds >= 20 )); then pw-play 'mouse_click.wav' &! fi unset _click_start_seconds } preexec_functions+=(_click_preexec) precmd_functions+=(_click_precmd) Mouse click sound: https://freesound.org/s/223445 https://freesound.org/s/223445