Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

"UPDATED"Name your screenshots with "Zenscreen2.5"

A place to discuss non-linux stuff including politics.

"UPDATED"Name your screenshots with "Zenscreen2.5"

Postby eriefisher on Sat Oct 18, 2008 9:18 pm

I hate the default that scrot has to name your shots. I knew it would take other arguments to properly name them but you would have to do this via the command line. Since Anti would like antiX to be new user friendly I tried to wright a script that would let you name your screen shots what ever you like and this is what I came up with. We already have scrot and zenity installed so it should work with no problems.

You the will either have to edit the existing screenshot entry in your menu or add a new one. I use wbar so I just added an entry there with an icon.

Let me know what you think.

UPDATE: I have added to Zenscreen and it now will let take a shot of a specific area of your screen which you select with the cursor.

Unpack the download and read the "README". It will tell you how to use the install script. Enjoy!
Attachments
zenscreen_2.5.deb.zip
Zenscreen_2.5.deb
(19.77 KiB) Downloaded 15 times
zenscreen-2.5.zip
Zenscreen-2.5
(8.66 KiB) Downloaded 25 times
zenscreen.jpeg
Zenscreen-2.5
zenscreen.jpeg (69.95 KiB) Viewed 187 times
Last edited by eriefisher on Tue Nov 11, 2008 2:21 pm, edited 11 times in total.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1430
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Name your screenshots with "Zenscreen"

Postby OU812 on Sat Oct 18, 2008 9:35 pm

Looks good and works great. Maybe anti will include it in the next release. If so, I'll make the necessary adjustments in icewm. Thanks!

john
OU812
 
Posts: 1004
Joined: Sat Sep 29, 2007 8:12 pm
Location: California

Re: Name your screenshots with "Zenscreen"

Postby eriefisher on Sat Oct 18, 2008 9:42 pm

Let me know it something should be different. I might put a kill in it so it will cancel before it takes the shot. Zenity will allow for this. I will look at it more. Thanks John.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1430
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Name your screenshots with "Zenscreen"

Postby OU812 on Sat Oct 18, 2008 9:44 pm

Erie - I've been playing around with your script. May I suggest the following mods?

Code: Select all
FILE=$(zenity --title "Name Of Shot" --entry --text "Name Of Shot:")

if [ $? = 0 ] ; then
   scrot -d 5 $n "$FILE".png && zenity --title "Saved" --info --text "Your screenshot has been saved as\n $HOME/$FILE"
fi

The if statement allows a user to cancel the screenshot process. The "-d 5" allows a 5 second delay before the screenshot. The "\n" escape sequence allows the path to be displayed on a separate line. I hope you don't mind.

john
OU812
 
Posts: 1004
Joined: Sat Sep 29, 2007 8:12 pm
Location: California

Re: Name your screenshots with "Zenscreen"

Postby eriefisher on Sat Oct 18, 2008 10:29 pm

That's exactly what I was thinking, thank you. I also want to put a "cancel" in a second if statment. I will edit and repost.

Thanks again John.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1430
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Name your screenshots with "Zenscreen"

Postby eriefisher on Sat Oct 18, 2008 10:48 pm

Ok I have edited and added a second if statement so it will cancel.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1430
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Name your screenshots with "Zenscreen"

Postby anticapitalista on Sun Oct 19, 2008 12:34 pm

Excellent work eriefisher and OU812.

Is there an easy way to add an option for user to choose to save as jpg or png?
Philosophers have interpreted the world in many ways; the point is to change it.
User avatar
anticapitalista
Site Admin
 
Posts: 2117
Joined: Tue Sep 11, 2007 4:55 pm
Location: Greece

Re: Name your screenshots with "Zenscreen"

Postby eriefisher on Sun Oct 19, 2008 1:02 pm

Yes there is. Right now it defaults to .png but I can change this so it entered by the user. I will see what I can do.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1430
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Name your screenshots with "Zenscreen"

Postby eriefisher on Sun Oct 19, 2008 1:15 pm

OK, you now have to enter <name>.<extension> ie: screenshot.jpg or mydesktop.png.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1430
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Name your screenshots with "Zenscreen"

Postby ICE-M on Sun Oct 19, 2008 11:04 pm

great script erie! now john can justify for keeping zenity :P. just a memo: add it to the fluxbox keys as well anti.
User avatar
ICE-M
 
Posts: 315
Joined: Mon Jun 02, 2008 4:31 pm
Location: The Matrix

Re: Name your screenshots with "Zenscreen"

Postby mariel77 on Mon Oct 20, 2008 1:47 am

eriefisher wrote:Yes there is. Right now it defaults to .png but I can change this so it entered by the user. I will see what I can do.


I tried this and it works great; I'm going to keep using it saving as a png too.
I forgot to say thank you! Nice work!
User avatar
mariel77
 
Posts: 247
Joined: Thu Sep 13, 2007 2:20 am

Re: Name your screenshots with "Zenscreen"

Postby OU812 on Thu Oct 23, 2008 4:44 am

I definitely like the ability to name files as .jpg or .png. For example, I just found out the hard that in this forum, you can only upload .jpg attachments. So while I wait for a finished version, I've already edited the early version of the script to save images as .jpg. Keep up the good work and I am definitely looking forward to the next version. So, does antix now have another developer?

john
OU812
 
Posts: 1004
Joined: Sat Sep 29, 2007 8:12 pm
Location: California

Zenscreen2.0

Postby eriefisher on Thu Oct 23, 2008 5:36 pm

I have now rewrote it a little to simplify and added some more functionality. You can now just pick the image type from a list. If you would like it to default to a certain file type then just edit the script and change FALSE to TRUE beside the image type you prefer. You will only save one click though.

Good luck and enjoy.
eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1430
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Name your screenshots with "Zenscreen2.0"

Postby mariel77 on Thu Oct 23, 2008 6:17 pm

Thanks, eriefisher! This is a great little addition to antiX.
User avatar
mariel77
 
Posts: 247
Joined: Thu Sep 13, 2007 2:20 am

Re: Name your screenshots with "Zenscreen2.0"

Postby oldhoghead on Thu Oct 23, 2008 8:19 pm

Very helpful script eriefisher, thank you

cheers
oldhoghead
Never belive anything until it has been officially denied.
Claude Cockburn (1904-1981)
oldhoghead
 
Posts: 163
Joined: Mon Oct 01, 2007 3:50 pm
Location: DFW

Next

Return to In a Greek kafeneio

Who is online

Users browsing this forum: No registered users and 1 guest