ttygde / pokoy

Lightweight daemon that helps prevent RSI and other computer related stress
GNU General Public License v2.0
57 stars 9 forks source link

Flash detection #3

Closed orschiro closed 9 years ago

orschiro commented 9 years ago

Hi there,

Would it be possible to detect a running flash video?

Useful to pause pokoy when watching Flash videos such as on Vimeo or YouTube.

What is your opinion?

Regards,

Robert

ttygde commented 9 years ago

Something like "block plugin-container" in config should work for fullscreen flash videos. I use viewtube + mozplugger + mpv to watch videos without flash. "block mpv" works fine for me. Also you can bind "pokoy -s" to some key combination in your window manager.

orschiro commented 9 years ago

Thanks for the suggestions.

I added block pugin-container and bound pokoy -s to an alias.

As a side note, is it also possible to detect Flash non-fullscreen mode, i.e. Whenever a flash video is running in general?

Thanks,

Robert

On 25.11.2014 11:35, ttygde wrote:

Something like "block plugin-container" in config should work for fullscreen flash videos. I use viewtube + mozplugger + mpv to watch videos without flash. "block mpv" works fine for me. Also you can bind "pokoy -s" to some key combination in your window manager.

— Reply to this email directly or view it on GitHub https://github.com/ttygde/pokoy/issues/3#issuecomment-64380154.

Sharing my passion & inspiration for

Sustasty

SustainableConsumption

SufficiencyLifestyles

ResourceEfficiency

Flying is old-school and the world cannot be saved part-time

Co-Creator of #MindfulMeerkats

www.robert.orzanna.de twitter.com/@orschiro

ttygde commented 9 years ago

Yes, it is possible. "pkill -0 plugin-container" before break to see if flash process exists or something like that.

orschiro commented 9 years ago

Thanks, seem to work!