Adding a screen lock shortcut.

This commit is contained in:
Rodolphe Breard 2015-07-08 17:07:38 +02:00
parent 16da32d9d9
commit 5f8555e62f

View file

@ -65,6 +65,7 @@ class ConfigWrapper:
self._add_key('Left', lazy.screen.prev_group()) self._add_key('Left', lazy.screen.prev_group())
self._add_key('w', lazy.window.kill()) self._add_key('w', lazy.window.kill())
self._add_key('Return', lazy.spawn(self.term)) self._add_key('Return', lazy.spawn(self.term))
self._add_key('l', lazy.spawn('xscreensaver-command --lock'))
self._add_key('r', lazy.spawncmd()) self._add_key('r', lazy.spawncmd())
self._add_key('r', lazy.restart(), extra_mod='control') self._add_key('r', lazy.restart(), extra_mod='control')
self._add_key('q', lazy.shutdown(), extra_mod='control') self._add_key('q', lazy.shutdown(), extra_mod='control')