Screenshots

BuSerD

Member

Reaction score: 7
Messages: 74

Daisuke_Aramaki said:
I need your monitor! :(

Thank you but you'll really hate this. I sold them both this morning because I picked up to 23 inch monitors to replace the 20's

Code:
% xrandr
Screen 0: minimum 3840 x 1080, current 3840 x 1080, maximum 3840 x 1080
default connected 3840x1080+0+0 0mm x 0mm
   3840x1080      50.0*

I decided I worked to hard this year not to treat myself :)
 

ligregni

New Member

Reaction score: 1
Messages: 18

How to get a screenshot?

Hi!, I am a Fluxbox/FreeBSD user, and I like it a lot for it's simplicity, but, how can I get some screeshots of my "screen"???

I mean, wich port I should use and how to use it!

Thanks
 

fronclynne

Daemon

Reaction score: 179
Messages: 1,296

ligregni said:
Hi!, I am a Fluxbox/FreeBSD user, and I like it a lot for it's simplicity, but, how can I get some screeshots of my "screen"???

I mean, wich port I should use and how to use it!

Thanks

I prefer x11/xwd simply because it's historically part of X (though with the modular stuff now, it's not always automatically installed). With graphics/netpbm you can do [cmd=""]xwd -root | xwdtopnm | pnmtopng > screenshot.png[/cmd].

There's also graphics/scrot, which many people here seem to use.

I believe graphics/gimp will screenshot (though do check for yourself), also I'm fairly sure graphics/xv does too.
 

graudeejs

Son of Beastie

Reaction score: 707
Messages: 4,617

This is how I make screenshots using ImageMagick on my fvwm

Code:
imgname=~/pic/screenshots/`date "+%Y.%m.%d_at_%H.%M.%S"`.jpg && import -quality 95 -window root $imgname && FvwmCommand "function Start_Viewer $imgname"
 

vermaden

Son of Beastie

Reaction score: 1,980
Messages: 3,185

You can also use imlib2_grab from imlib2 package:
Code:
% [color="Blue"]pkg_info -L -x imlib2 | grep grab[/color]
/usr/local/bin/imlib2_grab
% [color="Blue"]imlib2_grab[/color]
Usage: imlib2_grab [-v] [-id <drawable id>] [-width <width>] [-height <height>] [-noshape] <output file>
% [color="Blue"]imlib2_grab shot.png[/color]
% [color="Blue"]ls -l shot.png[/color]
-rw-r--r--  1 vermaden  vermaden  296326 2010.03.13 11:15 shot.png

I generally use that cross-os scripts for screenshots (runs on FreeBSD/Solaris/Linux):
http://forums.freebsd.org/showpost.php?p=9164&postcount=24
 

BuSerD

Member

Reaction score: 7
Messages: 74

ligregni said:
Hi!, I am a Fluxbox/FreeBSD user, and I like it a lot for it's simplicity, but, how can I get some screeshots of my "screen"???

I mean, wich port I should use and how to use it!

Thanks

I am another scrot user. I mapped it to my Print Screen key for quick access;

Code:
%whereis -sq scrot
/usr/ports/graphics/scrot
%grep scrot .fluxbox/keys
Print :Exec scrot -c -d 3 -m '%Y-%m-%d_$wx$h.png'
%grep scrot .fluxbox/menu
      [exec] (ScreenShot) {scrot -s -q 85}

I like the other methods as well but I use scrot with "-s" switch in my menu so I am select a window or region and the Print key for full screen cap. Works well for me.
 

graudeejs

Son of Beastie

Reaction score: 707
Messages: 4,617

This is my fvwm function for window screenshots :D
Code:
# Window_Screenshot {{{1
# create app screenshot
DestroyFunc Window_Screenshot
AddToFunc Window_screenshot
	+ I Exec imgname=~/pic/screenshots/`date "+%Y.%m.%d_at_%H.%M.%S"`_$[w.class].png \
		&& import -window $[w.id] $imgname && FvwmCommand "function Start_viewer $imgname"
# 1}}}
or I use this one, if I want WM decorations in screenshot
Code:
# FrameWindow_Screenshot {{{1
# create app screenshot (include window decorations)
DestroyFunc FrameWindow_Screenshot
AddToFunc FrameWindow_screenshot
	+ I Exec imgname=~/pic/screenshots/`date "+%Y.%m.%d_at_%H.%M.%S"`_$[w.class].jpg \
		&& import -quality 95 -frame -window $[w.id] $imgname && FvwmCommand "function Start_viewer $imgname"
# 1}}}

and I use this script
http://forums.freebsd.org/showpost.php?p=72787&postcount=70
with this fvwm function
Code:
# RealBigScreenshot {{{1
# create screenshot of all pages on current desk
DestroyFunc RealBigScreenshot
AddToFunc RealBigScreenshot
	+ I Exec exec $[FVWM_SCRIPTS]/RealBigScreenshot.sh $[desk.pagesx] $[desk.pagesy] $[page.nx] $[page.ny]
# 1}}}

to create screenshots of entire virtual desktop (all virtual pages)....

Maybe I'll write another script to create screenshots of all desks and pages :D


and this is how you integrate all this in menu
Code:
	+ "FScreenshot" \
		Pick Function FrameWindow_Screenshot
	+ "Screenshot" \
		Pick Function Window_Screenshot
	+ "RealBigScreenshot" \
		Function RealBigScreenshot

full config is available here
 

BuSerD

Member

Reaction score: 7
Messages: 74

I've been away for a while but here's a refresh of my latest:

Code:
[FreeBSD 10.0-CURRENT]$ xrandr
Screen 0: minimum 5760 x 1080, current 5760 x 1080, maximum 5760 x 1080
default connected 5760x1080+0+0 0mm x 0mm
   5760x1080      50.0*




http://postimage.org/image/u8y2yvee9/
 

Trihexagonal

Son of Beastie

Reaction score: 2,497
Messages: 3,057

Thanks, graudeejs.

jb_fvwm2 said:
Is that conky script posted anywhere?

It's gkrellm2 using one of the glass skins, the gkrellmoon2, and gkrellweather2 ports with it.

The wallpaper is from bestfreewallpapers.net and they had several nice ones for FreeBSD among others.

I ran conky on my old laptop with 384 RAM but it takes up more room and the difference in resource use isn't an issue for that box.
 

bars

New Member


Messages: 1

Love this thread, now it's time to show off my flux setup..
jQrq5.jpg
 
Top