Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xwd, How do I name the x-window-dump and open a save-as box?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
tw04l124
Veteran
Veteran


Joined: 03 Oct 2006
Posts: 1308
Location: A t z e l, lower austria

PostPosted: Wed Oct 02, 2013 12:08 pm    Post subject: xwd, How do I name the x-window-dump and open a save-as box? Reply with quote

Hi,

I want to capture a screenshot in i3wm. My wish is to be asked where to save the file and best i'd like to have the file named with screenshot_date.png.

Code:

roman@localhost ~ $ tail -2 .i3/config
#screenshot
bindsym $mod+F12 exec "xwd -root -display :0.0|convert xwd:- screenshot.png"


So far what I have researched and understood. xwd makes an x window screen dump in xwd file format, which is rather big. With the use of convert from imagemagick package i can convert it to a png file. The File is placed without any feedback in my home directory named screenshot.png

Questions:

How do I name the file screenshot_date.png. $date did not worked or I wrote it wrong. It has to be some bash magic which I did wrong.
How can I get a messagebox which asks me where to save the file?


Sources: http://inspirated.com/2007/04/02/howto-use-xwd-for-screenshots
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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