diff options
author | William Carroll <wpcarro@gmail.com> | 2022-01-20T23·47-0800 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-01-27T05·52+0000 |
commit | 6982ee618dfe8f94e5c00282b195142a8a4dede1 (patch) | |
tree | 7b603c359c87736935acf4e9135a2a84ba127ea3 /users/wpcarro/emacs/.emacs.d/wpc/keybindings.el | |
parent | db3223ab7c8fca53c321dbbf7afa7e296862044b (diff) |
refactor(wpcarro/emacs): Drop window-manager-logout r/3681
TL;DR: - undefine `window-manager-logout` - define window-manager customization group - publicize `window-manager--xsecurelock` - rename `window-manager--xsecurelock` -> `window-manager-screenlocker` - remap `workspace "l"` to always lock the screen Change-Id: I77df883b94e786c4584351c9ebf1dcf0d5a84a33 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5035 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d/wpc/keybindings.el')
-rw-r--r-- | users/wpcarro/emacs/.emacs.d/wpc/keybindings.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el b/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el index 5b137b75dc8e..d6e9d60d113f 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el @@ -178,7 +178,10 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Workspaces ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(keybindings-exwm (kbd-raw 'workspace "l") #'window-manager-logout) +(keybindings-exwm (kbd-raw 'workspace "l") + (lambda () + (interactive) + (shell-command window-manager-screenlocker))) (general-define-key :keymaps 'override |