LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Idea for a script to prevent xscreensaver while watching videos on a browser

Posted 03-15-2015 at 12:54 AM by the dsc (linux-related notes)
Updated 06-25-2015 at 12:04 PM by the dsc (grammar)

The core concept is just:


Code:
while true ; do

wmctrl -l | grep -i "youtube\|vimeo" && xscreensaver-command -deactivate

sleep 5m

done
Perhaps it would be more elegant to have something that somehow works more accordingly to xscreensaver's time rather than this thing that has smaller cycles just to play it safe.

Won't work for embedded videos, though, as "youtube"...
Member
Posted in Uncategorized
Views 1324 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration