4
1
Is it possible to run xmms2 stop
when I lock the screen with Ctrl+Alt+L?
4
1
Is it possible to run xmms2 stop
when I lock the screen with Ctrl+Alt+L?
6
Should be.
The desktop-agnostic way is:
~/.xbindkeysrc
Assuming your script is in /usr/local/bin/lockandstop
, ~/.xbindkeysrc
should contain:
"/usr/local/bin/lockandstop"
Control + Alt + l
or perhaps
"/usr/local/bin/lockandstop"
Mod4 + l
depending on what xmodmap
prints.
But maybe the KDE Control Panel offers an easier way under the keyboard shortcuts section.
Sounds like a good solution. I just can't find kdescreensaver. Is that the correct command for KDE 4.5? – Aaron Digulla – 2011-01-12T11:28:50.787
Found a solution via DBus: http://tips4linux.com/lock-your-kde-screen-from-the-command-line/
– Aaron Digulla – 2011-01-12T11:34:54.213