Hey, I'd like to get a shell script to run everytime I unlock my computer, on KDE 4. I learned that I could run one by overwriting /usr/lib/kde4/libexec/krunner_lock with a shell script doing its thing, then the original krunner_lock binary, and I'd basically want to do the opposite: launch a script that "undoes" what the locking script does. I'm on Kubuntu 9.04 64-bit but I appreciate answers for any operating system, in case I ever want to do the same on that system.
Join Stack Overflow to learn, share knowledge, and build your career.
|
Version for year 2015 that works under Kubuntu 14.10 using the Desktop Widgets locker:
This is for situation when you want to assign CTRL+ATL+L combination under the Custom section within the Global Keyboard Shortcuts. |
||||
|
|
|
Figured it out on the KDE forums here. Porges's solution is pretty close to the answer but it's not quite there yet. You have to pass the arguments that the script receives to the real krunner_lock, like so: |
|||||
|
|
Reading from this page, it seems like e.g.
|
||||
|
|