Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Competition: How many keystrokes to create a screenshots?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 4:48 pm    Post subject: Competition: How many keystrokes to create a screenshots? Reply with quote

I'm looking (simply for curiosity sake) for the fewest keystrokes to a finalized screenshot and how many ways we can come up with for the creation of a screen shot.

I'd give away a prize for it, but I haven't anything to give except some chocolate covered pretzels and a dead 14" monitor. I'll share if you can figure out how to get them from me electronically. (No teleportation devices!!) :roll:

I was inspired by AutoBot's now famous "Gentoo Desktop--- Whats Yours Look Like ?" at https://forums.gentoo.org/viewtopic.php?t=2460.

:!: Rules:
1) keystroke count doesn't include "emerge <program>" or whatever you do for general config of said program.
2) keystroke count doesn't include opening a terminal
3) mouse click = keystroke

Let the games begin !!
Back to top
View user's profile Send private message
perry
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2002
Posts: 142
Location: Cornfields of Indiana

PostPosted: Mon Feb 03, 2003 5:02 pm    Post subject: Reply with quote

4

Click(1) the kmenu button
Navigate w/ the mouse, w/o clicking, to graphics, more programs
Click(2) on ksnapshot
Click(3) on save snapshot
Click(4) on save

I now have a file on my desktop named snapshotx.jpg (I've switched it to jpeg in the past, it defaults to png which is acceptable).

If I wanted just a particular window, say Mozilla, it would just be 2 more. One to check "Only grab the window containing the pointer", and a second to hit "new shapshot". Don't have to click the window, just move the mouse over it.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 5:11 pm    Post subject: hmmm Reply with quote

Maybe I should have made a mouseclick more keystrokes. oh well...
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 619
Location: Hasselt, Belgium

PostPosted: Mon Feb 03, 2003 5:16 pm    Post subject: Reply with quote

In Gnome :
Click actions ==> Screenshot ==> Type filename ==> Press Save
_________________
Life is like a box of chocolates... Before you know it, it's empty...
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 5:32 pm    Post subject: How about fluxbox? Reply with quote

I know fluxbox is popular. Anyone have a quick procedure for fluxbox?
(I"ll count it as legal if you write a script to call from the menu as long as you share the full code w/ us.)
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Mon Feb 03, 2003 5:55 pm    Post subject: Reply with quote

Note: You need ImageMagick for this to work.

Make a file called screenshot and put it in /usr/local/bin

Code:

#!/bin/sh

if [ -f /usr/bin/import ]
then
    import -window root ~/ss.jpg
fi


Make it executable:
Code:

chmod 755 /usr/local/bin/screenshot


Add this to your .fluxbox/menu
Code:

[exec] (Screen Shot) {screenshot}


Then, right click, pick screenshot and a file named ss.jpg will be in your home directory.
_________________
-David
Back to top
View user's profile Send private message
Uranus
Guru
Guru


Joined: 07 May 2002
Posts: 438
Location: Portugal, Braga

PostPosted: Mon Feb 03, 2003 6:08 pm    Post subject: Reply with quote

that's cheating! :P

I could just as easily put the same program on my gnome desktop (and have nautilus execute on 1 click)... and all I'd have to do is click once
Back to top
View user's profile Send private message
morbuz
n00b
n00b


Joined: 27 Dec 2002
Posts: 9
Location: Norway

PostPosted: Mon Feb 03, 2003 6:17 pm    Post subject: For fluxbox Reply with quote

Find the keycode for the PrntScrn-key using xev (in my case "111") and map this to some (preferably non-existing) key in ~/.xinitrc:

Code:
~/.xinitrc:

xmodmap -e 'keycode 111=F15' # PrntScrn
exec fluxbox # start fluxbox


After you have done this you can add this line in your ~/.fluxbox/keys file:

Code:
~/.fluxbox/keys:

None F15    :execCommand import -w root ~/`date +%Y%m%d%H%M`.png


This will save a screenshot with the date and time as filename in your homedir when you press PrntScr (requires imagemagick).
Of course, you could map this to some other key, but I since you probably have a PrntScr key on your keyboard, why not use it for (almost) the same purpose it was designed for. :)
Back to top
View user's profile Send private message
Mindstab
Apprentice
Apprentice


Joined: 02 Jan 2003
Posts: 271
Location: Vancouver, Canada

PostPosted: Mon Feb 03, 2003 6:18 pm    Post subject: GKrellM Reply with quote

Using the GkrellM shoot plugin its one click and a gkrellm*****.jpg is in my home directory, its a screenhot. Do it again and again, the timestamp that is part of the file name will change and you ll soon have a collection of screenshots.
right click it to configure the time out and if you want it to just grab a window instead of the desktop.
This is what I use for enlightenment and wil work fine for flux box and what ever other wm you use
Back to top
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Mon Feb 03, 2003 6:37 pm    Post subject: Reply with quote

Asign your windows key to the above shell scripts, bingo 1 keystroke :)
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Mon Feb 03, 2003 6:44 pm    Post subject: Reply with quote

Mozilla mouse gesture? zero keystrokes...
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 6:44 pm    Post subject: This is some great stuff Reply with quote

I really like that PrnScrn key hack for fluxbox. My hats off to Edge and Morbux.

Notice goes to Mindstab for bringing up the Gkrellm method. Where do I get that plugin you mention?

And for Uranus, go for it and publish your steps that others may benefit.

For Edge and Morbux:
Addition to your challenge:
Can it be adjusted to work with an "Alt + PrnScrn" combination catching just one window similar to the way that Windows PrnScrn works to catch just an open window?

I know where I work the win folks love to send screen shots of windows for diagnostics rather then typing out the error message. It might be a great thing to have available if gentoo or fluxbox makes a business desktop.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 6:46 pm    Post subject: Instructions Reply with quote

Malakin wrote:
Mozilla mouse gesture? zero keystrokes...


Is this available in Phoenix as well? Could you spell out the steps? I didn't realize Moz had guestures, thought that was still an Opera original.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
morbuz
n00b
n00b


Joined: 27 Dec 2002
Posts: 9
Location: Norway

PostPosted: Mon Feb 03, 2003 7:11 pm    Post subject: Re: This is some great stuff Reply with quote

flickerfly wrote:

For Edge and Morbuz:
Addition to your challenge:
Can it be adjusted to work with an "Alt + PrnScrn" combination catching just one window similar to the way that Windows PrnScrn works to catch just an open window?


Probably not, I think you would need to hack the fluxbox-source to make that work.
Don't forget to send your patch to the developers ;)
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 7:42 pm    Post subject: Too bad... Reply with quote

That's too bad as I have a ways to go before I'm able to grab such a task. Maybe I'll make a feature request though.
:(
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
S_aIN_t
Guru
Guru


Joined: 11 May 2002
Posts: 488
Location: Ottawa

PostPosted: Mon Feb 03, 2003 8:24 pm    Post subject: Re: This is some great stuff Reply with quote

morbuz wrote:
flickerfly wrote:

For Edge and Morbuz:
Addition to your challenge:
Can it be adjusted to work with an "Alt + PrnScrn" combination catching just one window similar to the way that Windows PrnScrn works to catch just an open window?


Probably not, I think you would need to hack the fluxbox-source to make that work.
Don't forget to send your patch to the developers ;)


it is possible to do that with xv.. it allows you to pick which widows you want to take a shot of ..
_________________
"That which is overdesigned, too highly
specific, anticipates outcome; the anicipation of
outcome guatantees, if not failure, the
absence of grace."
- William Gibson, "All Tomorrow's Parties"
----
http://petro.tanreisoftware.com
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Mon Feb 03, 2003 8:24 pm    Post subject: Reply with quote

Quote:
Is this available in Phoenix as well? Could you spell out the steps? I didn't realize Moz had guestures, thought that was still an Opera original.

I don't know about Phoenix but here's the Mozilla page, it's been available for quite some time.
http://optimoz.mozdev.org/gestures/installation.html
Back to top
View user's profile Send private message
Mindstab
Apprentice
Apprentice


Joined: 02 Jan 2003
Posts: 271
Location: Vancouver, Canada

PostPosted: Mon Feb 03, 2003 8:57 pm    Post subject: Reply with quote

/usr/portage/x11-plugins/gkrellshoot
emerge gkrellshoot
http://www.mindstab.net/msd/images/inferno/inferno-menu-net.jpg
you can see it... its a one liner lock|shoot
it can also be used to lock your screen with xlock. And its nicely configurable. Nice little tool.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 8:57 pm    Post subject: Thanks Reply with quote

Thanks Malkin and S_aiN_t

FYI: Mouse Guestures are compatible w/ Phoenix.

Portion of the FAQ for installing:
Quote:
Permission issues in mozilla/bin/chrome are a larget issue with the Mozilla XPI system. Installing as root and chmod -R *' in the mozilla/chrome/mozgest directory will help non-root users use chrome add-ons. Exact details follow:

1. Launch mozilla as root and install Mouse Gestures.
2. Then issue the following commands:
* cd mozilla/chrome/mozgest #Note: up to you to figure out where the mozilla directory is
* chmod -R 755 * #Issue command as root

Probably isn't an ebuild package for this... at least "emerge -S gestures" and emerge -S optimoz" gives 0 matches. Would be easier for us Gentoo users that way though.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Feb 03, 2003 9:14 pm    Post subject: Excellent Reply with quote

Mindstab wrote:
emerge gkrellshoot


Emerging as I type
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Tue Feb 04, 2003 1:59 am    Post subject: Reply with quote

Matje wrote:
In Gnome :
Click actions ==> Screenshot ==> Type filename ==> Press Save


From the "Help Browser - Working With Menus"

Quote:

You can take a screenshot in any of the following ways:

-----------------------------------------------------------

Use shortcut keysTo take a screenshot, use the following shortcut keys:Default Shortcut KeysFunctionPrint ScreenTakes a screenshot of the entire screen, and displays the Screenshot dialog. Use the Screenshot dialog to save the screenshot.Alt+Print ScreenTakes a screenshot of the window that has focus, and displays the Screenshot dialog. Use the Screenshot dialog to save the screenshot. You can use the Keyboard Shortcuts preference tool to modify the default shortcut keys



(Gnome)
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
ChazeFroy
n00b
n00b


Joined: 26 Sep 2002
Posts: 27

PostPosted: Tue Feb 04, 2003 2:25 pm    Post subject: Reply with quote

The one command I always use is "xwd" because it does not matter what window manager you are using. Sure, it's a few extra keystrokes; but it's good to use this command instead of KDE- or Gnome-specific screenshot commands:

xwd -root > foobar

Then just fire up Gimp and convert it to your favorite format.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue Feb 04, 2003 2:33 pm    Post subject: What format does it come in? Reply with quote

ChazeFroy: What format does xwd create the file in?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 619
Location: Hasselt, Belgium

PostPosted: Tue Feb 04, 2003 2:41 pm    Post subject: Reply with quote

I just had an idea :-)
Add one of the scripts above to your crontab: no more keystrokes, just wait untill the next *ZAP* :lol: :lol: :lol:
_________________
Life is like a box of chocolates... Before you know it, it's empty...
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue Feb 04, 2003 2:52 pm    Post subject: Continuation of an idea... Reply with quote

Matje wrote:
I just had an idea :-)
Add one of the scripts above to your crontab: no more keystrokes, just wait untill the next *ZAP* :lol: :lol: :lol:


Maybe you could even set it up the script to place it in a web accessible folder and post a reply to "Gentoo Desktop--- Whats Yours Look Like ?". It would almost be like a webcam of your desktop. 8)
NOTE:: Scarry to think what kind of information you would be giving away though. :twisted:
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum