Skip to main content
12 events
when toggle format what by license comment
Nov 29, 2017 at 11:30 comment added hanzo2001 Does anybody know how or where to hook this script to start listening on first login?
Nov 1, 2016 at 13:03 comment added Starx How to run that script that it catches the lock event? Kinda like a watcher.
S Oct 20, 2016 at 1:16 history suggested Riot CC BY-SA 3.0
fixing error in example code & grammar
Oct 20, 2016 at 0:25 review Suggested edits
S Oct 20, 2016 at 1:16
Nov 13, 2015 at 13:26 history edited Petr Skocik CC BY-SA 3.0
made more readable; removed unecessary subshell and unecessary grep calls; made immediately executable
Aug 2, 2014 at 2:18 comment added Aquarius Power I think things may have changed now in 2014? as the output doesnt change if the screen was only locked, it only shows something when it gets blanked and is very different from here :(, I created this question askubuntu.com/questions/505681/…, do you believe there is still some way to do that? thx!
Jan 4, 2012 at 16:13 comment added Sander @peoro Thanks great, very helpful! Can I also run this as some sort of daemon? When I enter this in the terminal now, it has to stay open to monitor the dbus for that case. I would like to execute this command at login and then it can be active during the entire session.
Jan 3, 2012 at 5:18 comment added peoro @Nikhil: to do that you don't need to play around with dbus: gnome-screensaver-command is already there. Passing -a to gnome-screensaver-command you'll lock the screen, while you'll unlock it with -d. Anyway most gnome apps use dbus extensively, so you'll be able to do many amazing things with it.
Jan 3, 2012 at 5:13 comment added Nikhil Mulley Hi @peoro, That makes me think you can unlock or lock gnome screen/session from a scripted program, worth doing some ssh tricks about it ;-)
Jan 3, 2012 at 3:13 history edited peoro CC BY-SA 3.0
added 381 characters in body
Jan 3, 2012 at 3:10 vote accept Naftuli Kay
Jan 3, 2012 at 2:57 history answered peoro CC BY-SA 3.0