Roman_Gruber Advocate

Joined: 03 Oct 2006 Posts: 3847 Location: Austro Bavaria
|
Posted: Wed Oct 02, 2013 12:08 pm Post subject: xwd, How do I name the x-window-dump and open a save-as box? |
|
|
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 |
|