From c766b3e048a3c69388d74f13170f699125f09f61 Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Tue, 8 May 2018 21:23:09 +0200 Subject: [PATCH] Add capture individual screens option --- README.md | 8 ++++ dbus/org.dharkael.Flameshot.xml | 20 +++++++- docs/bash-completion/flameshot | 9 +++- src/cli/commandlineparser.cpp | 6 ++- src/core/capturerequest.cpp | 9 +++- src/core/capturerequest.h | 7 ++- src/core/controller.cpp | 41 +++++++++++++---- src/core/controller.h | 3 ++ src/core/flameshotdbusadapter.cpp | 17 ++++++- src/core/flameshotdbusadapter.h | 3 +- src/main.cpp | 76 ++++++++++++++++++++++++++++--- src/utils/screengrabber.cpp | 28 ++++++++++++ src/utils/screengrabber.h | 1 + 13 files changed, 200 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index a6707630..4b42e820 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,14 @@ Example commands: `flameshot full -c -p ~/myStuff/captures` +- capture the screen containing the mouse and print the image (bytes) in PNG format: + + `flameshot screen -r` + +- capture the screen number 1 and copy it to the clipboard: + + `flameshot screen -n 1 -c` + In case of doubt choose the first or the second command as shortcut in your favorite desktop environment. A systray icon will be in your system's panel while Flameshot is running. diff --git a/dbus/org.dharkael.Flameshot.xml b/dbus/org.dharkael.Flameshot.xml index 57b899a3..87b68b0a 100644 --- a/dbus/org.dharkael.Flameshot.xml +++ b/dbus/org.dharkael.Flameshot.xml @@ -18,7 +18,7 @@ + + + + + + + +