Re: Screenshot Key Bindings in rc.xml?

Paulo Igor Barra Nascimento <pibarnas-/E1597aS9LRfJ/[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <[email protected]>
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 <[email protected]> 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
[email protected]
http://icculus.org/mailman/listinfo/openbox

_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.