Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
7  
nice Question , may be i can use this in my college to prevent students from opening these sites . thanks man . –  AgentCool Oct 19 '12 at 6:04
3  
@33833 to prevent users from opening websites, it's best to use a proxy like squid. –  medigeek Oct 19 '12 at 6:09
1  
+1, I really want it :) –  Tachyons Oct 19 '12 at 9:10
7  
will you put stack exchange in those sites? –  Simon Oct 19 '12 at 13:42
add comment

4 Answers 4

up vote 47 down vote accepted

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".

share|improve this answer
2  
amazing this is work! but in future I want make a GUI program for this, thanks a lot. –  ademar111190 Oct 19 '12 at 6:20
6  
You could probably just extend what he wrote there with this:library.gnome.org/users/zenity –  xamox Oct 19 '12 at 17:31
1  
If you have vlc media player installed you don't need mpg321, replace it with cvlc. –  rosch Oct 20 '12 at 21:01
    
wow! Great!! I wish I could thumbs up more than one.. ;) –  Saurav Kumar Oct 15 '13 at 13:33
add comment

If you use Firefox, you can try LeechBlock, an extension "designed to block those time-wasting sites that can suck the life out of your working day". It's highly configurable and could change your life if you suffer of this kind of problem.

share|improve this answer
add comment

there is an app called aplomb which was made as a part of the ubuntu app showdown a few months ago... i'll try n get a link to it n edit the amswer asap...if u find it,well and gud... it lets u block sites for ur deaignatd amnt f time! :) here is the link to the launchpad page- https://launchpad.net/~snwh/+archive/aplomb

share|improve this answer
    
I think it isn't more available, on launchpad.net/aplomb I'm getting the message "Update: this project has been shelved indefinitely & all code has been deleted." –  ademar111190 Aug 14 '13 at 1:41
    
@ademar111190 try searching for the .deb somewhr...u may try the site ubuntuupdates.org u can find deb packages for most apps here... –  Nirmik Aug 14 '13 at 8:21
add comment

There is always Rescue Time which monitors websites you visit. It doesnt slap you or anything, but it can give you a report on where you are wasting time. They even have 32 bit and 64 bit DEB files to install, plus the app in Firefox and Chrome.

Its free for basic uses, but is $6 a month if you would like to block websites, monitor how much time you spend on a doc, etc.

https://www.rescuetime.com/

DEB files and RPMs here...

https://www.rescuetime.com/setup/download

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.