Sunday, May 5, 2024
49
rated 0 times [  49] [ 0]  / answers: 1 / hits: 3820  / 2 Years ago, sun, october 30, 2022, 3:12:25

On Mac OS X I have an app that plays a sound when I enter certain sites. I want a similar software to use on Linux. Does anybody know one?


More From » software-recommendation

 Answers
5

Here's a workaround:



sudo apt-get install mpg321 wmctrl

while [ 1 ]; do z=$(wmctrl -l -p | grep -i 'facebook|miniclip'); if [ -n "$z" ]; then mpg321 myfile.mp3; fi; sleep 5; done


This will play myfile.mp3 if any open current window title matches "facebook" or "miniclip".


[#34879] Monday, October 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
throecember

Total Points: 274
Total Questions: 118
Total Answers: 132

Location: India
Member since Thu, Jun 11, 2020
4 Years ago
;