diff --git a/fedora.md b/fedora.md index 25b5c36..92aa487 100644 --- a/fedora.md +++ b/fedora.md @@ -1,3 +1,22 @@ +# Screenshot + +`screenshot-area.sh` + +```sh +#!/bin/bash +SCREENSHOT_FILE="/tmp/screenshot.png" +gnome-screenshot -a -f "$SCREENSHOT_FILE" +cat "$SCREENSHOT_FILE" | xclip -selection clipboard -t image/png -i +``` + +`screenshot-full.sh` + +```sh +#!/bin/bash +SCREENSHOT_FILE="/tmp/screenshot.png" +gnome-screenshot -a -f "$SCREENSHOT_FILE" +cat "$SCREENSHOT_FILE" | xclip -selection clipboard -t image/png -i +``` # KVM