Choose style:

Author Topic: Why pyshot?  (Read 2648 times)

0 Members and 1 Guest are viewing this topic.

Offline configX

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 17
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: Why pyshot?
« Reply #15 on: August 08, 2015, 09:20:15 pm »
I don't care what anyone says,  you guys are alright in my book.  :D

Luckily a screenshot app isn't mission critical - it was only a thought I had from a newbie UX perspective. I've been using Linux since 2007 and can get around just fine - it's the newcomers I worry about. I've always been a big fan of lightweight software that is simplistic but doesn't lack in function, hence my interest in Peppermint. So, you can imagine my surprise when everything was going swimmingly until I needed to take a screenshot...lol. Not a big deal for me, I know how to install packages. But then I thought how that might affect newcomers to the Linux world. Let's show them how awesome lightweight open-source and free software can be while not skimping on the sauce. 

Perhaps this could be discussed more during development of the next release. Like PCNetSpec said, it could be as easy as making the shortcuts more accessible. Or maybe we find another utility that's just as light as pyshot but with more bang for the buck.

Is there any kind of project management during each release cycle? Just curious how things work around here.  :)

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1752
  • Karma: 466
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Why pyshot?
« Reply #16 on: August 09, 2015, 08:02:26 am »
Hi configX,

PCNetSpec is our coordinator for new releases and manages the project of getting new versions into beta-testing, etc. He also consults with the Big Shots who run PeppermintOS LLG (or whatever it's called).




As to your desire for making it easier for newbies to get screenshots of the desktop or an active window (without using things like GIMP to crop the screenshot to the window): if PCNetSpec decides to stay with the handy and small program scrot then he could include some new menu items (one called "Screenshot" and another maybe "Window Shot") that do not use pyshot but just call a script that in turn uses scrot to achieve the results they would be missing if they did not have the PrintScreen key.

For example, by creating an executable script similar to this:

Code: [Select]
#!/bin/bash


# shootWindow.sh : This is a script that uses scrot to make a picture of the
# currently active window and saves it in the user's desktop folder as a PNG file.


scrot -u -d 1 -b 'Win_%Y-%m-%d_%H:%M:%S.png' -e 'mv $f ~/Desktop/'

and putting it into the user's PATH and then creating a .desktop file similar to this:

Code: [Select]
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Shoot Active Window
Comment=Take a picture of the focused window
Icon=camera
Exec=shootWindow.sh
Terminal=false
Categories=GTK;Utility;
StartupNotify=false
You have an entry in the Accessories category of the main menu that makes a picture of the currently active window.

Similarly for the entire desktop with this script:

Code: [Select]
#!/bin/bash


# shootDesktop.sh : This is a script that uses scrot to make a picture of the
# entire desktop and saves it in the user's desktop folder as a PNG file.


scrot -d 1 'Desk_%Y-%m-%d_%H:%M:%S.png' -e 'mv $f ~/Desktop/'

and this .desktop file:

Code: [Select]
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Shoot Desktop
Comment=Take a picture of your desktop
Icon=camera
Exec=shootDesktop.sh
Terminal=false
Categories=GTK;Utility;
StartupNotify=false

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline 10i

  • Trusted User
  • Member
  • *****
  • Posts: 481
  • Karma: 129
  • Peppermint Enthusiast
    • View Profile
    • My Peppermint Blog
  • Peppermint version(s): Peppermint 10 - 64 bit
Re: Why pyshot?
« Reply #17 on: August 09, 2015, 08:55:11 am »
I used to take a lot of screenshots, but haven't lately.

Normally I install shutter for this, but it does not have to be included in the ISO or anything. I just use it because it is what I have used for a while now.
Running Peppermint 8- 64 bit on my Lenovo i3 laptop.

View my Linux blog:  http://myiceadventure.blogspot.com

Offline configX

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 17
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: Why pyshot?
« Reply #18 on: August 09, 2015, 08:57:50 am »
Oh wow, I didn't even know that scrot could capture rectangular areas. Slim.Fatz got me thinking so I was looking at the man page and the -s flag allows you to select an area. Perhaps we could cobble together a decent Zenity gui for scrot that would let the user choose a screenshot type, delay, save location, etc. That would probably be under 5KB in Bash.

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1752
  • Karma: 466
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Why pyshot?
« Reply #19 on: August 09, 2015, 09:40:30 am »
Hi configX,

Yes, scrot is really quite versatile, so I was wondering why you wanted something else. I did not include them, but I also have a menu entries for: area selection pictures and picture taking after 5 or after 10 second delays. I always store my scrot-pix in the same location so I personally don't need an option for storing them elsewhere.

But feel free to throw a gui together and present it to PCNetSpec for consideration.

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline configX

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 17
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: Why pyshot?
« Reply #20 on: August 09, 2015, 09:49:50 pm »
I'm not much of a programmer but I was able to put this together. Eventually I can add a delay option when choosing window or desktop and also have it ask where to save the file.  For now files are saved in Desktop.



Code: [Select]
#!/bin/sh

mode=$(zenity --list --width 450 --height 220 \
  --title="Choose a Screenshot Mode" \
  --column="Mode" \
    "Click and Drag Rectangular Area" \
    "Active Window Only" \
    "Entire Desktop")

case $mode in
    "Click and Drag Rectangular Area" )
    scrot -sz '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/Desktop/'
    ;;
    "Active Window Only" )
    scrot -buz '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/Desktop/'
    ;;
    "Entire Desktop" )
    scrot -z '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/Desktop/'
    ;;
esac

Offline scifidude79

  • Global Moderator
  • Hero
  • *****
  • Posts: 4029
  • Karma: 863
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Why pyshot?
« Reply #21 on: August 09, 2015, 10:00:37 pm »
That's really cool.  :)  As somebody who has literally tried and failed to learn programming, I'm highly impressed.

Offline configX

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 17
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: Why pyshot?
« Reply #22 on: August 09, 2015, 10:56:25 pm »
Yeah I'm actually surprised I got that far.   :)