Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Flash region on screenshot #221

Open
MithicSpirit opened this issue Nov 29, 2020 · 3 comments
Open

[Feature Request] Flash region on screenshot #221

MithicSpirit opened this issue Nov 29, 2020 · 3 comments

Comments

@MithicSpirit
Copy link

It would be nice if there was a switch that could be set which would make the screenshotted region flash when the screenshot was taken so that I have some feedback that it actually worked. This wouldn't work with just executing another program that flashes the screen after maim because it should flash the specific region that was screenshotted (rather than the entire screen).

@foxpy
Copy link
Collaborator

foxpy commented Dec 27, 2020

Combine slop and maim like this:

flash() {
	echo "Replace this function with actual flash program which would flash screen at $1"
}

coord="$(slop)"
save_path="$HOME/screenshot_$(date).png"
maim --geometry="$coord" > "$save_path"
flash "$coord"

Now someone should implement the flash program :)

@foxpy
Copy link
Collaborator

foxpy commented Dec 27, 2020

Yeah, slop is a part of maim, if you use maim, you almost definitely have slop installed.

@alvv-z
Copy link

alvv-z commented Jan 19, 2023

In a script, you used to be able to call gnome's flash like this IIRC:

gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell/Screenshot -m org.gnome.Shell.Screenshot.FlashArea $ORIGX $ORIGY $WIDTH $HEIGHT

It no longer works since they've restricted the API access, but maybe someone with more knowledge could port their flash mechanic to maim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants