SafeEyes icon indicating copy to clipboard operation
SafeEyes copied to clipboard

Smart recognition of screencasting and video conferences?

Open orschiro opened this issue 6 years ago • 7 comments

Dear @slgobinath,

I am wondering if there is any way to detect running screencasting applications and video conferencing apps? The latter shall include things like meet.google.com running in the browser, for instance.

With this, is it somehow possible to automatically (smartly) pause SafeEyes as long as these apps are running?

That would be neat. :-)

Thanks!

orschiro avatar May 19 '18 10:05 orschiro

It is a great idea! I have a plan to support Google Calendar using gcalcli to avoid breaks while you are in a meeting.

For screencasting and video conferences, we need to find a good way to detect them. If anyone has an idea, please share it.

Thanks

slgobinath avatar May 19 '18 11:05 slgobinath

Hooray, glad your open for this idea, thanks @slgobinath! :-)

orschiro avatar May 19 '18 15:05 orschiro

@slgobinath any news on recognising a Google Meet meeting either by checking the tab name or tab url?

image

orschiro avatar Oct 25 '19 14:10 orschiro

Hey all,

This would be a great feature, and I'll plus-one it. Just want to remind everyone about bountysource.com, which is a great way to incentivize development of features like this :).

kael-shipman avatar Apr 15 '20 16:04 kael-shipman

+1 for implementing this feature or finding a way to do this.

I have a concept in my head of how to do it using external script. If successful I will report back.

  1. Script running in background, every 10 seconds, checks for presence of a window based on a filter list or regex, using wmctrl -l.
  2. If such a "video conference" window exists (e.g. with window title "Meet – xxx-xxxx-xxx — Mozilla Firefox"), then send pause command to safeeyes using safeeyes -d
  3. If no such windows found then enable safeeyes with safeeyes -e.

The problem will be that it will keep re-enabling safeeyes if you manually disabled it for some other reason, but lets see how bad it is in practice

vijay-prema avatar Jan 09 '23 03:01 vijay-prema

So its possible to implement my idea above just by running this bash command every 10 seconds or so (e.g. using crontab).

bash -c "if wmctrl -l | grep -q \"Meet - \"; then safeeyes -d; else safeeyes -e; fi"

Just replace "Meet - " with whatever window name you want to detect.

vijay-prema avatar Jan 10 '23 03:01 vijay-prema

Hey, this is awesome! Good work!

kael-shipman avatar Jan 10 '23 22:01 kael-shipman