Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to bind a key when the lock screen is up (or the screensaver is on). My machine is often locked and I want to be able to hit a shortcut to run a script in my home directory.

I've used System Settings -> Keyboard -> Shortcuts to bind keys to trigger the lock screen, but when the screensaver is on or the lock screen is up, my custom shortcut is disabled. Is there a way to flag my custom shortcut so that it is available from the lock screen, or to set it in gnome-screensaver?

share|improve this question
    
There's some brainstorming about this here: Allow media keys to function while the desktop is locked –  ændrük Dec 3 '13 at 7:18

1 Answer 1

The scope of lock screen is to lock any user to do something. This mean that you can't run a script in lock screen only if you schedule it to run from before.

Consequently, your shortcut key or any other shortcut will never work when your computer is in lock screen.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.