Ensure scrot.el initializes

- Adds scrot to init.el
- Moves the EXWM keybindings to keybindings.el
This commit is contained in:
William Carroll 2020-01-20 16:48:42 +00:00
parent 16fd606f91
commit 3d6b521919
3 changed files with 4 additions and 2 deletions

View file

@ -27,6 +27,7 @@
(require 'email) (require 'email)
;; TODO: Consider renaming entr.el. ;; TODO: Consider renaming entr.el.
(require 'entr) (require 'entr)
(require 'scrot)
;; TODO: Reconcile kbd.el, keybindings.el, wpc-keybindings.el, keyboard.el. ;; TODO: Reconcile kbd.el, keybindings.el, wpc-keybindings.el, keyboard.el.
(require 'keybindings) (require 'keybindings)

View file

@ -13,6 +13,7 @@
(require 'clipboard) (require 'clipboard)
(require 'screen-brightness) (require 'screen-brightness)
(require 'chrome) (require 'chrome)
(require 'scrot)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Configuration ;; Configuration
@ -34,5 +35,7 @@
(keybinding/exwm "C-M-c" #'chrome/browse) (keybinding/exwm "C-M-c" #'chrome/browse)
(keybinding/exwm (kbd/raw 'x11 "s") #'scrot/select)
(provide 'keybindings) (provide 'keybindings)
;;; keybindings.el ends here ;;; keybindings.el ends here

View file

@ -60,7 +60,5 @@ The output path is copied to the user's clipboard."
(scrot/call "--select" screenshot-path) (scrot/call "--select" screenshot-path)
(scrot/copy-image screenshot-path))) (scrot/copy-image screenshot-path)))
(exwm-input-set-key (kbd/raw 'x11 "s") #'scrot/select)
(provide 'scrot) (provide 'scrot)
;;; scrot.el ends here ;;; scrot.el ends here