1

I'm using Slackware 13 on my notebook, and I'm using pm-suspend to have a faster boot up. I'd like to have it run xlock after bringing it back from suspend, is it possible?

liewl
  • 421
  • 2
  • 9
  • 22

2 Answers2

2

Try placing an executable script in /etc/acpi/resume.d: 91-xlock.sh:

#!/bin/sh
DISPLAY=":0" su -c your-user-name xlock

Also, you can try creating a script in /etc/pm/sleep.d that will create xlock-launcher that executes once, at boot. Cheers!

kolypto
  • 3,041
  • 6
  • 28
  • 35
1

You can also try a script like this that you call for suspend:

#!/bin/sh  
xlock&  
sleep 3  
sudo pm-suspend   
suspectus
  • 4,735
  • 14
  • 25
  • 34