I was wondering how to measure the time elapsed after, say, screensaver starts and then show that time on a freedesktop notification when back.
Add the following lines to your XResources file
~/.Xresources
xscreensaver.logFile:/var/log/xscreensaver.log
xscreensaver.verbose:true
This is if xcreensaver is your screensaver, you can replace it with your favorite screensaver utility.
You can then grep the log file.
-
Sorry I didn't comment before, didn't have the reputation to do so. I don't have that file in ~, only .Xdefaults and .Xauthority – Nico Rodsevich Jul 30 '14 at 15:40
-
xprintidle
command gives you the idle time in milliseconds for the corresponding display – Stéphane Chazelas Mar 12 '14 at 15:28xssstate -i
from suckless.org – Stéphane Chazelas Mar 12 '14 at 19:59