From c0baba142f66f022d605375e801e01eb13408b55 Mon Sep 17 00:00:00 2001 From: josiah Date: Sat, 5 Jun 2021 12:37:20 -0500 Subject: [PATCH] Scrot now saves a copy to a dir as well as copying to my clipboard. --- .stumpwm.d/init.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.stumpwm.d/init.lisp b/.stumpwm.d/init.lisp index 8cfb232..791f4c9 100644 --- a/.stumpwm.d/init.lisp +++ b/.stumpwm.d/init.lisp @@ -42,7 +42,8 @@ (defcommand jlj/scrot () () "Run scrot!" - (run-shell-command "sleep 0.2 && scrot -s -e 'mv $f ~/Pictures/screenshots/'")) + (run-shell-command "sleep 0.2 && scrot -s /home/josiah/Pictures/screenshots/$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'")) + (define-key *root-map* (kbd "R") "restart-hard") (define-key *top-map* (kbd "M-SPC") "jlj/rofi")