Review your favorite Linux distribution.
Go Back > Blogs
User Name


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.

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

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

The core concept is just:

while true ; do

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

sleep 5m

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"...
Posted in Uncategorized
Views 354 Comments 0 the dsc is offline

Possible key mechanism to disable xscreensaver automatically when watching youtube and the like

Posted 05-29-2014 at 09:07 PM by the dsc (linux-related notes)

I haven't even tried it yet, it just looks like a good candidate method to mess with eventually:

top p $mplayer_pid -bd 0.25 n 3 | grep $mplayer_pid | awk '{print $9}'
I saw it here:

That would give "larger than zero" numbers when mplayer is playing (I think Debian's/current "top" syntax is a little bit different and requires "b" and "d" separated,...
Posted in Uncategorized
Views 326 Comments 0 the dsc is offline


All times are GMT -5. The time now is 07:19 AM.

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