mirror of
https://github.com/Qubes-Community/Contents.git
synced 2025-05-02 14:26:37 -04:00
moved code/ content to subfolders
This commit is contained in:
parent
197faac381
commit
2d9e9b89d9
20 changed files with 0 additions and 24 deletions
9
code/productivity/screenshot-scripts/README.md
Normal file
9
code/productivity/screenshot-scripts/README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
### Screenshot scripts ###
|
||||
Here you have different choices, inspect and find one that matches your needs.
|
||||
|
||||
|
||||
### Caution before use ###
|
||||
|
||||
We, as in any Qubes-Community users, collaborators, members and owners, expect that anyone using anything produced, uploaded, adviced or otherwise, that comes out of the Qubes Community, to be met with a healthy amount of skepticism. Please be careful about running any scripts, following wiki's, doc's or guide's, which you don't understand what do. We take no responsibility for any damage or losses. We do however wish to keep the reliability, as well as security and privacy, at the best quality possible, but we are not accountable for not meeting our goals.
|
||||
|
||||
This site is run by volunteers. The Qubes OS Project is not affiliated with this site and does not endorse the content of any of these pages.
|
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
# qvm-screenshot-to-clipboard
|
||||
# Creates a dom0 screenshot and copy it to the Clipboard of an AppVM
|
||||
# Version: 0.1 without any error checking
|
||||
# Initial author: [799] - https://github.com/one7two99/
|
||||
#
|
||||
# Usage: qvm-screenshot-to-clipboard <Name of AppVM>
|
||||
# Hint: make sure to have xclip available in dom0 and the AppVMs (Template)
|
||||
|
||||
# Define Variables
|
||||
MyAppVM=$1
|
||||
MyScreenshot=qvm-screenshot-to-clipboard.png
|
||||
|
||||
# Take screenshot in dom0 by selecting an area and adding border+shadow
|
||||
gnome-screenshot --area --include-border --border-effect=shadow --file=/tmp/$MyScreenshot
|
||||
|
||||
# Copy screenhot to AppVM
|
||||
qvm-move-to-vm $MyAppVM /tmp/$MyScreenshot
|
||||
|
||||
# Create a helper-Script in the AppVM to copy screenshot file to clipboard
|
||||
echo "xclip -selection clipboard -l 1 -t image/png /home/user/QubesIncoming/dom0/$MyScreenshot" > /tmp/file2clipboard.sh
|
||||
chmod +x /tmp/file2clipboard.sh
|
||||
qvm-move-to-vm $MyAppVM /tmp/file2clipboard.sh
|
||||
# Send notification for 5sec when Screenshot has been pasted into (!) AppVM
|
||||
notify-send --urgency low --icon image --expire-time=5000 "qvm-screenshot-to-clipboard" "Screenshot available in $MyAppVM's clipboard"
|
||||
# Run the helper script in the AppVM
|
||||
qvm-run $MyAppVM /home/user/QubesIncoming/dom0/file2clipboard.sh
|
||||
|
||||
### The last command will remain active until the pasting has been done in the AppVM
|
||||
|
||||
# Send notification for 5sec after Screenshot has been pasted from (!) AppVM
|
||||
notify-send --urgency low --icon image --expire-time=5000 "qvm-screenshot-to-clipboard" "Screenshot pasted from $MyAppVM's clipboard"
|
||||
|
||||
# Remove helper script and screenshot file in AppVM
|
||||
qvm-run $MyAppVM "rm -f /home/user/QubesIncoming/dom0/file2clipboard.sh /home/user/QubesIncoming/dom0/$MyScreenshot"
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Author:
|
||||
#Aekez @ Github
|
||||
|
||||
#Disclaimer:
|
||||
#Please use this script responsibly & at own risk.
|
||||
#Please study the script, so that you know how it works.
|
||||
|
||||
#Tip:
|
||||
#1) You may change the dom0 output folder ~/Screenshots if desired.
|
||||
#2) mv "$()" and the -o option flag, autosaves screenshots.
|
||||
#3) Put a longer sleep time if you need to prepare.
|
||||
#4) A minimum sleep timer is adviced to ensure qvm-move works.
|
||||
#5) screenshot_* moves all files named screenshot_ in that foler.
|
||||
|
||||
mv "$(xfce4-screenshooter -fo ls)" ~/Screenshots
|
||||
( sleep 3 )
|
||||
qvm-move-to-vm AppVM ~/Screenshots/screenshot_*
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Author:
|
||||
#Aekez @ Github
|
||||
|
||||
#Disclaimer:
|
||||
#Please use this script responsibly & at own risk.
|
||||
#Please study the script, so that you know how it works.
|
||||
|
||||
#Tip:
|
||||
#1) You may change the dom0 output folder ~/Screenshots if desired.
|
||||
#2) mv "$()" and the -o option flag, autosaves screenshots.
|
||||
#3) Put a longer or shorter sleep time if you need more or less time
|
||||
# to assign a screenshot region.
|
||||
#4) A minimum sleep timer is adviced to ensure qvm-move works.
|
||||
#5) screenshot_* moves all files named screenshot_ in that foler.
|
||||
|
||||
mv "$(xfce4-screenshooter -ro ls)" ~/Screenshots
|
||||
( sleep 15 )
|
||||
qvm-move-to-vm AppVM ~/Screenshots/Screenshot_*
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Author:
|
||||
#Aekez @ Github
|
||||
|
||||
#Disclaimer:
|
||||
#Please use this script responsibly & at own risk.
|
||||
#Please study the script, so that you know how it works.
|
||||
|
||||
#Tip:
|
||||
#1) You may change the dom0 output folder ~/Screenshots if desired.
|
||||
#2) mv "$()" and the -o option flag, autosaves screenshots.
|
||||
#3) Put a longer sleep time if you need to prepare.
|
||||
#4) A minimum sleep timer is adviced to ensure qvm-move works.
|
||||
#5) screenshot_* moves all files named screenshot_ in that foler.
|
||||
|
||||
mv "$(xfce4-screenshooter -wo ls)" ~/Screenshots
|
||||
( sleep 3 )
|
||||
qvm-move-to-vm AppVM ~/Screenshots/screenshot_*
|
Loading…
Add table
Add a link
Reference in a new issue