![]() ![]() Then change 1 back to 3m and put your screen shot procedure in place of the echo in function ss. To see the script in action, replace 3m with 1 and run it. Here is a script that illustrates using a counter. If I run xscreensaver daemon after login, it works, but thats a hassle for something that should work just fine. No log messages, nothing on dmesg, nothing. xscreensaver file, something like: default-n: chbg -xscreensaver -randomize \ -windowid XSCREENSAVERWINDOW \ -interval 0.30 \ -R HOME/Pictures/ \ \ default-n: xv -root -rmode 5 -random \ -viewonly -wloop -wait 30 \ HOME/Pictures/. If you want to tighten the bounds, decrease K and L, or use a counter. Ive tried variations on the command, with /usr/bin, without, with -display, without, without -verbose. To use those, you need to add a line to the 'programs' preference in your. However, the idle interval could have been as long as K L minutes. Then at W2 you know there has been no keyboard activity during the last K minutes. ![]() Suppose that at W1 xset said monitor on, and at W2 said it is off. debug Causes lots of diagnostics to be printed on stderr. The xscreensaver-settings program will open its window on that display, and also control the xscreensaver daemon that is managing that same display. display host:display.screen The X display to use. Let W1, W2 denote two successive script wakeups. xscreensaver-settings accepts the following command line options. Suppose your screen-saver monitor-off delay is K minutes and your script wakeup interval is L minutes. Will produce Monitor is Off if the screen is blanked, else Monitor is On. Its a tool for setting screensavers with a HUGE collection within. You could use xscreensaver-command -time to find out if a state change occurred since your previous screenshot.Ī simpler way for your script to find out if the screen is blanked is shown below. For enjoying screensaver, we have to get a tool XscreenSaver. The positive side - they can't remove it from their startup as /etc/rc.local is a system script owned by root :-o. The inconvenience is that xscreensaver will be running for all the users even if they are not logged in. You might instead just forego the current screenshot if the screen is blanked, and keep your 15-minute timer running on a regular schedule. Replace with the command you want to use to start xscreensaver. When UNBLANK occurs, either reset the timer to 15-T, or perhaps take a screenshot and set the timer to 15. Whenever a LOCK or BLANK occurs, save the amount of time T elapsed since previous screenshot and stop the timer. To start, install and set up xscreensaver (if using a screensaver is compatible with your habits if not, see next answer).Īs described in the xscreensaver man page, add xscreensaver-command -watch in a read loop to your screenshot script. (This method is crude I imagine a better solution could be suggested if I knew more about xscreensaver.) But that aside, following is a method that might help with the stated goal. The question David Z asks is worth answering we can only speculate about your end goals, or reason for taking screen shots. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |