StumpWM: Mapped suspend, poweroff, restart and hibernate

This commit is contained in:
Marcel Kapfer 2018-02-23 10:05:41 +01:00
parent f35273534b
commit aaaf5d97e5
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -134,6 +134,17 @@
(define-key *root-map* (kbd "j") '*webjump-frame-bindings*)
;; computer power state keys
(defvar *powerstate-frame-bindings*
(let ((m (make-sparse-keymap)))
(define-key m (kbd "M-s") "system-suspend")
(define-key m (kbd "M-p") "system-poweroff")
(define-key m (kbd "M-r") "system-restart")
(define-key m (kbd "M-h") "system-hibernate")
m))
(define-key *root-map* (kbd "XF86Launch1") *powerstate-frame-bindings*)
;; lockscreen
(define-key *root-map* (kbd "M-l") "exec blurlock")