Support clipboard/contents

This function returns the contents of the clipboard without calling paste.
This commit is contained in:
William Carroll 2020-01-17 18:52:16 +00:00
parent e197dc5aba
commit cd3b879e7b

View file

@ -36,6 +36,10 @@
(yank) (yank)
(message message)) (message message))
(defun clipboard/contents ()
"Return the contents of the clipboard as a string."
(substring-no-properties (current-kill 0)))
(exwm-input-set-key (exwm-input-set-key
(kbd "C-M-v") #'ivy-clipmenu/copy) (kbd "C-M-v") #'ivy-clipmenu/copy)