Hello,

I have made some research and it seems that it is not possible to make 
screenshots within one AppVM but only from dom0.

Having a short walk in our forest I came up with a great idea (at I think it is 
:-) which I would like to share to hear your opinions.

I know that there are some screenshot tools for Qubes like the 
qvm-screenshot-tool, which are trying to make the screenshot workflow easier 
when taking screenshots from dom0.

https://github.com/evadogstar/qvm-screenshot-tool/blob/master/README.md

I would like to have a tool, which makes a screenshot on dom0 (select area 
which should be screenshoted) then save this to a file, which gets qvm-copied 
to the AppVM I need the screenshot on and then copy the graphic file into the 
clipboard and delete the file afterwards.

This would make the workflow working with screenshots much easier.
It seems that something like "copy graphic file to clipboard" can be done:

https://askubuntu.com/questions/759651/how-to-copy-an-image-to-the-clipboard-from-a-file-using-command-line

xclip -selection clipboard -t image/png -i example.png

Can someone build a script in dom0 to do this?

qvm-screenshot-to-appvm-clip

- start

1) command to open a screenshot tool in dom0 with the possibility to select an 
area of the screen and make a screenshot.

2) after the taking the screenshot the screenshot is saved to a file on dom0 
(/tmp/screenshot-.PNG

3) qvm-copy-to-appvm  /tmp/screenshot-.PNG

4) qvm-run  "copy-picture-to-clipboard.sh screenshot-.PNG"

5) copy-picture-to-clipboard.sh is a script in the AppVM which copy the file 
from the Qubes-Incoming/dom0 directory into the clipboard
Maybe something like xclip mentioned here:
https://askubuntu.com/questions/759651/how-to-copy-an-image-to-the-clipboard-from-a-file-using-command-line

6) delete the screenshot in the AppVm

7) delete the screenshot in dom0

- end

What do you think? Wouldn't this feature be a great enhancement for working 
with Qubes?

[799]

--
Qubes 4rc3 > Lenovo X230
Qubes 4rc4 > Lenovo W540

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/3apEtk6xkySIumJlE8GzYVFxeHvEqAaDiVJArzvclkIJpw4NkDaX8XxChaM5KUfbc0h6wLc_1-BPt5c9elbO1vpd0kahu--SZVbA710Tyts%3D%40protonmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to