Discussion:
[openbox] Screenshot Key Bindings in rc.xml?
E R
2014-04-30 03:59:42 UTC
Permalink
Hi Everyone,

Originally someone showed me these keybindings to take a screen shot, but
since I've started using Compton I get black in screen shots.

<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "xwd | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "xwd -frame | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "xwd -root | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>


So I've switch this using import like below;

<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "import /home/sar/ScreenShots/screenshot-$(date
+%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "import -frame
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "import -window root
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>

What I don't understand is why there are 3 commands, and the way I have it
now for import, is correct because it seems to working ok?

thank you all... :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140429/1a983ae4/attachment.html>
Anthony Thyssen
2014-04-30 11:11:47 UTC
Permalink
3 commands because you have 3 events.

Or 3 commands per event?
EG: one "date" command to generate a date string, "bash" to allow you to
insert the date string into the comand-line of the "import".
Post by E R
Hi Everyone,
Originally someone showed me these keybindings to take a screen shot, but
since I've started using Compton I get black in screen shots.
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "xwd | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "xwd -frame | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "xwd -root | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
So I've switch this using import like below;
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "import /home/sar/ScreenShots/screenshot-$(date
+%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "import -frame
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "import -window root
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
What I don't understand is why there are 3 commands, and the way I have it
now for import, is correct because it seems to working ok?
thank you all... :)
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140430/ba13cfef/attachment-0001.html>
E R
2014-04-30 20:59:13 UTC
Permalink
Hi Everyone,

Thanks for the reply, so the 3 import cmds are ok?

bash -c "import /home/

bash -c "import -frame /home/

bash -c "import -window root /home/


thank you...


On Wed, Apr 30, 2014 at 1:11 AM, Anthony Thyssen
Post by Anthony Thyssen
3 commands because you have 3 events.
Or 3 commands per event?
EG: one "date" command to generate a date string, "bash" to allow you to
insert the date string into the comand-line of the "import".
Post by E R
Hi Everyone,
Originally someone showed me these keybindings to take a screen shot, but
since I've started using Compton I get black in screen shots.
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "xwd | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "xwd -frame | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "xwd -root | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
So I've switch this using import like below;
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "import /home/sar/ScreenShots/screenshot-$(date
+%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "import -frame
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "import -window root
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
What I don't understand is why there are 3 commands, and the way I have
it now for import, is correct because it seems to working ok?
thank you all... :)
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140430/19720f23/attachment.html>
Paulo Igor Barra Nascimento
2014-04-30 22:20:15 UTC
Permalink
U will need scrot and ImageMagick for these (enjoy):

<item label="Screenshot Now">
<action name="Execute">
<execute>
sh -c &quot;import -quality 100% -resize 80% -screen ~/Screenshots/tela-$(date ?+%d-%m-%Y ).png &amp;&amp; display ~/Screenshots/tela-$(date ?+%d-%m-%Y ).png&quot;
</execute>
</action>
</item>
<item label="Screenshot Now 2">
<action name="Execute">
<execute>
scrot -t 80 ?~/Imagens/'tela-%d-%m-%Y.png' -e 'gpicview $f'
</execute>
</action>
</item>
<item label="Screenshot in 15 s">
<action name="Execute">
<execute>
sh -c &quot;scrot -d 15 -c ~/Screenshots/tela-$(date ?+%d-%m-%Y ).png ?&amp;&amp; display ~/Screenshots/tela-$(date ?+%d-%m-%Y ).png&quot;
</execute>
</action>
</item>
Em Quarta-feira, 30 de Abril de 2014 1:00, E R <ears.box at gmail.com> escreveu:

Hi Everyone,

Originally someone showed me these keybindings to take a screen shot, but since I've started using Compton I get black in screen shots.


<!-- Keybindings for Screen Shots -->
??? <keybind key="Print">
????? <action name="Execute">
??????? <startupnotify>
????????? <enabled>false</enabled>
????????? <name>Snapshot</name>
??????? </startupnotify>
??????? <command>bash -c "xwd | convert - /home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
????? </action>
??? </keybind>
??? <keybind key="S-Print">
????? <action name="Execute">
??????? <startupnotify>
????????? <enabled>false</enabled>
????????? <name>Snapshot with Frame</name>
??????? </startupnotify>
??????? <command>bash -c "xwd -frame | convert - /home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
????? </action>
??? </keybind>
??? <keybind key="C-Print">
????? <action name="Execute">
??????? <startupnotify>
????????? <enabled>false</enabled>
????????? <name>Snapshot Fullscreen</name>
??????? </startupnotify>
??????? <command>bash -c "xwd -root | convert - /home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
????? </action>
??? </keybind>



So I've switch this using import like below;

<!-- Keybindings for Screen Shots -->
??? <keybind key="Print">
????? <action name="Execute">
??????? <startupnotify>
????????? <enabled>false</enabled>
????????? <name>Snapshot</name>
??????? </startupnotify>
??????? <command>bash -c "import /home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
????? </action>
??? </keybind>
??? <keybind key="S-Print">
????? <action name="Execute">
??????? <startupnotify>
????????? <enabled>false</enabled>
????????? <name>Snapshot with Frame</name>
??????? </startupnotify>
??????? <command>bash -c "import -frame /home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
????? </action>
??? </keybind>
??? <keybind key="C-Print">
????? <action name="Execute">
??????? <startupnotify>
????????? <enabled>false</enabled>
????????? <name>Snapshot Fullscreen</name>
??????? </startupnotify>
??????? <command>bash -c "import -window root /home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
????? </action>
??? </keybind>


What I don't understand is why there are 3 commands, and the way I have it now for import, is correct because it seems to working ok?


thank you all... :)

_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140430/757215b9/attachment-0001.html>
E R
2014-04-30 23:53:45 UTC
Permalink
Hi

I just got through asking if these command for import from ImageMagick will
work? I already have thes in my rc.xml, so is this good?


<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "import /home/sar/ScreenShots/
screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "import -frame
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "import -window root
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>



On Wed, Apr 30, 2014 at 12:20 PM, Paulo Igor Barra Nascimento <
Post by Paulo Igor Barra Nascimento
<item label="Screenshot Now">
<action name="Execute">
<execute>
sh -c &quot;import -quality 100% -resize 80% -screen
~/Screenshots/tela-$(date +%d-%m-%Y ).png &amp;&amp; display
~/Screenshots/tela-$(date +%d-%m-%Y ).png&quot;
</execute>
</action>
</item>
<item label="Screenshot Now 2">
<action name="Execute">
<execute>
scrot -t 80 ~/Imagens/'tela-%d-%m-%Y.png' -e 'gpicview $f'
</execute>
</action>
</item>
<item label="Screenshot in 15 s">
<action name="Execute">
<execute>
sh -c &quot;scrot -d 15 -c ~/Screenshots/tela-$(date +%d-%m-%Y ).png
&amp;&amp; display ~/Screenshots/tela-$(date +%d-%m-%Y ).png&quot;
</execute>
</action>
</item>
Hi Everyone,
Originally someone showed me these keybindings to take a screen shot, but
since I've started using Compton I get black in screen shots.
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "xwd | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "xwd -frame | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "xwd -root | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
So I've switch this using import like below;
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "import /home/sar/ScreenShots/screenshot-$(date
+%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "import -frame
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "import -window root
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
What I don't understand is why there are 3 commands, and the way I have it
now for import, is correct because it seems to working ok?
thank you all... :)
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140430/e6232d8a/attachment.html>
E R
2014-05-03 03:55:12 UTC
Permalink
I got it all fixed thanks...
Post by E R
Hi
I just got through asking if these command for import from ImageMagick
will work? I already have thes in my rc.xml, so is this good?
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "import /home/sar/ScreenShots/
screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "import -frame
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "import -window root
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
On Wed, Apr 30, 2014 at 12:20 PM, Paulo Igor Barra Nascimento <
Post by Paulo Igor Barra Nascimento
<item label="Screenshot Now">
<action name="Execute">
<execute>
sh -c &quot;import -quality 100% -resize 80% -screen
~/Screenshots/tela-$(date +%d-%m-%Y ).png &amp;&amp; display
~/Screenshots/tela-$(date +%d-%m-%Y ).png&quot;
</execute>
</action>
</item>
<item label="Screenshot Now 2">
<action name="Execute">
<execute>
scrot -t 80 ~/Imagens/'tela-%d-%m-%Y.png' -e 'gpicview $f'
</execute>
</action>
</item>
<item label="Screenshot in 15 s">
<action name="Execute">
<execute>
sh -c &quot;scrot -d 15 -c ~/Screenshots/tela-$(date +%d-%m-%Y ).png
&amp;&amp; display ~/Screenshots/tela-$(date +%d-%m-%Y ).png&quot;
</execute>
</action>
</item>
Hi Everyone,
Originally someone showed me these keybindings to take a screen shot, but
since I've started using Compton I get black in screen shots.
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "xwd | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "xwd -frame | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "xwd -root | convert -
/home/foo/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
So I've switch this using import like below;
<!-- Keybindings for Screen Shots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot</name>
</startupnotify>
<command>bash -c "import /home/sar/ScreenShots/screenshot-$(date
+%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot with Frame</name>
</startupnotify>
<command>bash -c "import -frame
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<startupnotify>
<enabled>false</enabled>
<name>Snapshot Fullscreen</name>
</startupnotify>
<command>bash -c "import -window root
/home/sar/ScreenShots/screenshot-$(date +%m-%d-%Y).png"</command>
</action>
</keybind>
What I don't understand is why there are 3 commands, and the way I have
it now for import, is correct because it seems to working ok?
thank you all... :)
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140502/d8512b96/attachment-0001.html>
Loading...