Created
May 12, 2017 00:51
-
-
Save jpouellet/b174a7450e1c068f589dcc116df16a62 to your computer and use it in GitHub Desktop.
Qubes screenshot helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Added Associations] | |
image/png=qubes-movetovm.desktop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=SaveToAppVM | |
GenericName=Save image to AppVM | |
Comment=Open an AppVM selector and save image in the selected AppVM | |
Exec=/home/user/.local/bin/qvm-move-to-chosen-vm.sh %F | |
Icon=qubes-appmenu-select | |
Type=Application | |
Terminal=false | |
NoDisplay=true | |
Categories=Graphics;Viewer; | |
MimeType=application/x-navi-animation;image/bmp;image/x-bmp;image/x-MS-bmp;image/gif;image/x-icon;image/jpeg;image/png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-cmu-raster;image/x-sun-raster;image/x-tga;image/tiff;image/vnd.wap.wbmp;image/x-xbitmap;image/x-xpixmap;image/svg;image/svg+xml;image/x-png;image/xpm;image/x-ico;image/x-pcx; | |
X-Desktop-File-Install-Version=0.22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
vm=$(qvm-ls --raw-data state name-raw | grep '^Running|' | cut -d'|' -f2 | grep -v dom0 | zenity --list --title 'Choose destination VM' --column 'VM Name' 2>/dev/null) | |
if [ -n "$vm" ]; then | |
qvm-move-to-vm "$vm" "$@" | |
qvm-run -p "$vm" 'xdg-open /home/user/QubesIncoming/dom0' </dev/null | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment