Author Topic: pmss (Poor Man's Screenshooter)  (Read 3134 times)

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: pmss (Poor Man's Screenshooter)
« Reply #15 on: December 12, 2016, 11:52:13 PM »
^ hakerdefo can script... :D
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1769
    • View Profile
Re: pmss (Poor Man's Screenshooter)
« Reply #16 on: December 12, 2016, 11:53:48 PM »
xdotool and wmctrl  are defaults in a certain VSIDO distro..  :P  8)

And I took a cue from a certain Sid-based distro and made sure to include them in my Void fluxbox spin.  ;D
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

  • Posts: 1769
    • View Profile
Re: pmss (Poor Man's Screenshooter)
« Reply #17 on: December 12, 2016, 11:55:53 PM »
^ hakerdefo can script... :D

Understatement of the week award -

I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: pmss (Poor Man's Screenshooter)
« Reply #18 on: December 13, 2016, 12:00:41 AM »
I am curios if it is possible to have the terminal minimize when selecting A Take the Screenshot of area selected by mouse

If I try to alt tab to another window after selecting A that makes the choice. If I try to minimize it, that also makes the choice and each one of these leave the terminal in the scrot .. which I do not want

So a better approach may be to automatically minimize the terminal until mouse function is complete

What do you think?
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: pmss (Poor Man's Screenshooter)
« Reply #19 on: December 13, 2016, 12:16:38 AM »
A housekeeping request

Could the default location of scrots be changed in the script from

Code: [Select]
DIR="${HOME}/Pictures/Screenshots"

to

Code: [Select]
DIR="${HOME}/images/scrots"
I know that I can change it (and did change it)

The defaults in VSIDO is /images/scrot and /Pictures/scrot is not even a setup
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1769
    • View Profile
Re: pmss (Poor Man's Screenshooter)
« Reply #20 on: December 13, 2016, 12:28:33 AM »
I am curios if it is possible to have the terminal minimize when selecting A Take the Screenshot of area selected by mouse

If I try to alt tab to another window after selecting A that makes the choice. If I try to minimize it, that also makes the choice and each one of these leave the terminal in the scrot .. which I do not want

So a better approach may be to automatically minimize the terminal until mouse function is complete

What do you think?

Yes, I looked at the script and the timer options present in the other options are missing from the select a window function.

in the " function area_mouse (){ " section, you can change:

Code: [Select]
scrot -s "${NAME}"
to

Code: [Select]
scrot -s -d10 -c "${NAME}"
to add 10 seconds delay to the screenshot. Close the terminal and any other apps while the timer is counting down.

I made the change and saved to a new script to confirm.



I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: pmss (Poor Man's Screenshooter)
« Reply #21 on: December 13, 2016, 12:51:19 AM »
^ xdg-open is not liking that option... It works to get to a point where you should be able to select a rectangle but there is nothing you can do

This is the error it spits out and it makes sense because nothing was selected for an image to be created

Code: [Select]
Shot-121216-184812.png Saved in /home/vastone/images/scrots

xdg-open: file '/home/vastone/images/scrots/Shot-121216-184812.png' does not exist

Would you like to upload the shot to imgur?

Press "Y" to upload the shot to imgur
Press "N" to go back to the main menu

Enter Your Choice:

I am thinking there will be additional code to handle the capture
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1769
    • View Profile
Re: pmss (Poor Man's Screenshooter)
« Reply #22 on: December 13, 2016, 02:43:08 AM »
Might be another difference between Void and Debian then. When running the script, I can:

1. Select area when prompted to do so
2. Minimize terminal as the timer counts down
3. Screnshot taken, ristretto opens with image
4. Un-minimize terminal and post to imagur.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: pmss (Poor Man's Screenshooter)
« Reply #23 on: December 13, 2016, 02:55:41 AM »
What appears to be missing for me is the ability to select an area

Nothing I do presents any type of or THE capture tool
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1769
    • View Profile
Re: pmss (Poor Man's Screenshooter)
« Reply #24 on: December 13, 2016, 03:25:26 AM »
My mouse cursor doesn't change - it doesn't become a "+" like it does for xfce4-screenshooter. A the "Draw A Rectangle On The Screen And Area Inside It Will Be Captured.."
message, I just grab an area by holding down Mouse1 and dragging a rectagle. The countdown starts when I release Mouse1.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Snap

  • Posts: 462
    • View Profile
Re: pmss (Poor Man's Screenshooter)
« Reply #25 on: December 13, 2016, 04:04:37 AM »
+1 for xdotool and wmctrl. They always go in along with xorg and fluxbox on my systems. It should be a metapackage LOL.

@ PackRat: might be a good moment to try maim and/or escrotum in Void. They both are in the repos. They are supposedly improved shooters to overcome the scrot usual glitches and limitations. Never bothered to try them so far. I guess pmss would be easily adapted for those needing a bit more than what the good old unpatched scrot gives.

hakerdefo

  • Posts: 467
    • View Profile
    • Looking at Linux through the Windows of Life
Re: pmss (Poor Man's Screenshooter)
« Reply #26 on: December 13, 2016, 05:52:27 AM »
version 2 with a few VSIDO specific changes coming later today.
Stay tuned ;)
Cheers!!!
You Can't Always Git What You Want

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: pmss (Poor Man's Screenshooter)
« Reply #27 on: December 13, 2016, 05:59:08 AM »
^ Thanks for posting this.. I am tired and need sleep and the ISO's I wanted to test and upload can now be redone tomorrow after you update this

Thanks for all you do hakerdefo!
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: pmss (Poor Man's Screenshooter)
« Reply #28 on: December 13, 2016, 03:44:04 PM »
My mouse cursor doesn't change - it doesn't become a "+" like it does for xfce4-screenshooter. A the "Draw A Rectangle On The Screen And Area Inside It Will Be Captured.."
message, I just grab an area by holding down Mouse1 and dragging a rectagle. The countdown starts when I release Mouse1.

Do you see a rectangle as you drag and draw?
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1769
    • View Profile
Re: pmss (Poor Man's Screenshooter)
« Reply #29 on: December 13, 2016, 05:02:35 PM »
Yes.

A 1-2 pixel wide, solid line, rectangle.

It's black - so on your (vsido) default wallpaer you may not see it; maybe try a lighter background. Might be worth it to change the color to red; not sure what line defines the rectangle in the function or I'd give it a try myself.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo