Results 1 to 3 of 3
I've wrote a script to set the brightness level using the webcam to sense the ambient light, right now I'm using the pm sleep hook to call it, figure I'm ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-08-2012 #1Just Joined!
- Join Date
- Jul 2012
- Posts
- 2
hook for login
I've wrote a script to set the brightness level using the webcam to sense the ambient light, right now I'm using the pm sleep hook to call it, figure I'm in a new area if I'm coming out of suspend, is there a hook for login (whether a fresh login or just unlocking the screen)?
Thx, Tom
- 07-09-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,680
it depends on your distro/display manager, but you can check out the /etc/X11/xinit dir for some scripts that can be configured to be executed upon login.
if you are using xscreensaver, you can use the -watch command to write screensaver activity to a log file, then have a daemon read your logfile, looking for unlocking activity.
- 07-09-2012 #3Just Joined!
- Join Date
- Jul 2012
- Posts
- 2


Reply With Quote

