about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configs/shared/.emacs.d/init.el1
-rw-r--r--configs/shared/.emacs.d/wpc/keybindings.el3
-rw-r--r--configs/shared/.emacs.d/wpc/scrot.el2
3 files changed, 4 insertions, 2 deletions
diff --git a/configs/shared/.emacs.d/init.el b/configs/shared/.emacs.d/init.el
index 5e60f0d11487..0d2bec7645a5 100644
--- a/configs/shared/.emacs.d/init.el
+++ b/configs/shared/.emacs.d/init.el
@@ -27,6 +27,7 @@
 (require 'email)
 ;; TODO: Consider renaming entr.el.
 (require 'entr)
+(require 'scrot)
 
 ;; TODO: Reconcile kbd.el, keybindings.el, wpc-keybindings.el, keyboard.el.
 (require 'keybindings)
diff --git a/configs/shared/.emacs.d/wpc/keybindings.el b/configs/shared/.emacs.d/wpc/keybindings.el
index 85a6f8cb8852..22457c3b6d37 100644
--- a/configs/shared/.emacs.d/wpc/keybindings.el
+++ b/configs/shared/.emacs.d/wpc/keybindings.el
@@ -13,6 +13,7 @@
 (require 'clipboard)
 (require 'screen-brightness)
 (require 'chrome)
+(require 'scrot)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Configuration
@@ -34,5 +35,7 @@
 
 (keybinding/exwm "C-M-c" #'chrome/browse)
 
+(keybinding/exwm (kbd/raw 'x11 "s") #'scrot/select)
+
 (provide 'keybindings)
 ;;; keybindings.el ends here
diff --git a/configs/shared/.emacs.d/wpc/scrot.el b/configs/shared/.emacs.d/wpc/scrot.el
index 3911d262fc92..eeb12b3731e9 100644
--- a/configs/shared/.emacs.d/wpc/scrot.el
+++ b/configs/shared/.emacs.d/wpc/scrot.el
@@ -60,7 +60,5 @@ The output path is copied to the user's clipboard."
     (scrot/call "--select" screenshot-path)
     (scrot/copy-image screenshot-path)))
 
-(exwm-input-set-key (kbd/raw 'x11 "s") #'scrot/select)
-
 (provide 'scrot)
 ;;; scrot.el ends here