From aaaf5d97e5a9931ec7d8d788bf682646c7b1ed4a Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 23 Feb 2018 10:05:41 +0100 Subject: [PATCH] StumpWM: Mapped suspend, poweroff, restart and hibernate --- stumpwm/stumpwmrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stumpwm/stumpwmrc b/stumpwm/stumpwmrc index cdc932c..6c3564a 100644 --- a/stumpwm/stumpwmrc +++ b/stumpwm/stumpwmrc @@ -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")