rgerganov / footswitch

Command-line utility for PCsensor and Scythe foot switches
MIT License
419 stars 60 forks source link

run shell script when button is pressed #52

Closed saiballo closed 5 years ago

saiballo commented 5 years ago

is it possible to run a shell script when button is pressed even the screen is locked?

now i achive this goal mapping a key shortcut but it does not run when screen is locked

rgerganov commented 5 years ago

Well, the whole idea of running a screen lock is to prevent unauthorized access which includes executing programs. I don't think there is an easy way to achieve this.

saiballo commented 5 years ago

well, you are right... ok thank you!