Open TigBuh99 opened 1 year ago
I assume the sound plays when X11 selection changes. You may need to disable the "Run automatic commands on selection" option in Preferences.
Actually, the command already handles that case if you use this command: https://github.com/hluk/copyq-commands/blob/master/Automatic/play-sound-when-copying-to-clipboard-linux.ini
Thank you for the possible solutions. Ιf I disable the "Run automatic commands on selection" option in Preferences it works. The other solution has the problem that VLC, which I use on my system, doesn't play the sound in the background. Instead of that it plays the sound, opens the program window (VLC) and VLC remains open on screen.
I changed the command of Play Sound on Copy to
bash: cvlc --vout=none --play-and-exit ~/Wav/boing.wav
and now VLC does not come up on screen when the sound is played.
However, this still requires the "Run automatic commands on selection" option in Preferences to be not enabled. If it's enabled, the sound plays if I only select anything to be copied.
Play Sound on Copy plays the sound simply on any time text is selected, that is even if the text is not actually copied.
The expected behavior is that the sound should play only when you press Ctrl+C
Version, OS and Environment