|
From: | Jean Louis |
Subject: | Re: Screenshots, frame shots straight from Emacs |
Date: | Sat, 26 Jun 2021 01:34:45 +0300 |
User-agent: | Mutt/2.0.7+183 (3d24855) (2021-05-28) |
* Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2021-06-26 01:06]: > Jean Louis wrote: > > > As you like screenshots, here is one way to generate Emacs > > frame shots straight from Emacs without using external > > programs > > ;;; -*- lexical-binding: t -*- > ;;; > ;;; this file: > ;;; http://user.it.uu.se/~embe8573/emacs-init/vt.el > ;;; https://dataswamp.org/~incal/emacs-init/vt.el > > (defun dump (desc) > (interactive "sdescription: ") > (message nil) > (let ((file (format "~/%s.png" desc))) > (shell-command (format "sudo fbgrab %s" file)) > (shell-command (format "sudo chown %s %s" user-login-name file)) > (shell-command (format "sudo chgrp %s %s" user-login-name file)) )) Sudo for screenshot? ( ◔ ʖ̯ ◔ ) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
[Prev in Thread] | Current Thread | [Next in Thread] |