screenshoot.lisp 419 B

12345678910111213141516
  1. (in-package :stumpwm)
  2. (defun screenshot-filename ()
  3. (concat (time-date-and-time-restrict)
  4. ".png"))
  5. (defcommand screenshot-default () ()
  6. "Screenshot with filename like 2017-10-30-03-29-16.png"
  7. (eval-command (concat "screenshot-window " (screenshot-filename))))
  8. (defcommand xfce-screenshooter () ()
  9. (run-shell-command "xfce4-screenshooter"))
  10. (defcommand zoom () ()
  11. (run-shell-command "boomer"))