feat(nixos): Add key binding for starting i3lock

This commit is contained in:
Vincent Ambo 2017-11-17 18:24:27 +01:00
parent 051c111646
commit f18e578c4b

View file

@ -18,6 +18,10 @@
(interactive) (interactive)
(shell-command "exec light -U 10")) (shell-command "exec light -U 10"))
(defun lock-screen ()
(interactive)
(shell-command "i3lock"))
(if is-nixos (if is-nixos
(progn (progn
(message "Running on NixOS, configuring ExWM.") (message "Running on NixOS, configuring ExWM.")
@ -53,6 +57,7 @@
;; Brightness keys ;; Brightness keys
(exwm-input-set-key (kbd "<XF86MonBrightnessDown>") #'brightness-down) (exwm-input-set-key (kbd "<XF86MonBrightnessDown>") #'brightness-down)
(exwm-input-set-key (kbd "<XF86MonBrightnessUp>") #'brightness-up) (exwm-input-set-key (kbd "<XF86MonBrightnessUp>") #'brightness-up)
(exwm-input-set-key (kbd "<XF86Display>") #'lock-screen)
;; Line-editing shortcuts ;; Line-editing shortcuts
(exwm-input-set-simulation-keys (exwm-input-set-simulation-keys