PDA

View Full Version : [ubuntu] Run a script after unlocking screen


Rhiknow
December 5th, 2008, 12:23 PM
Greetings,

This is my 1st post so please don't bite...

After much googling, I can't for the life of me figure out how to run a script once the screensaver has been unlocked.

I'm using gnome.

I want to dismount an encrypted volume when the screen-saver is activated and remount once the screen has been unlocked.

Currently, when I unlock the screen, the encrypted volume is still mounted. This is not what I want: I want to be prompted to re-mount the encrypted drive when unlocking the screen.

I've got a script running on start-up which activates a dialogue asking for the truecrypt password. This works perfectly fine.

Also, how do I run 'truecrypt -d /my/enc/volume' on log-out?

I hope someone out there know this stuff off the top of their heads.

I can't seem to figure it out!

Thanks in advance,