Re: Screenshot Key Bindings in rc.xml?
E R <[email protected]>
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <CAB1i-Sw4vsQ3B=H8bz1azah-d6Sp3XC4jNcgyUGSXihJG75Wyw@mail.gmail.com> |
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 <a.thyssen-YlX7AVbyhojX/[email protected]>wrote: > 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". > > > On Wed, Apr 30, 2014 at 1:59 PM, E R <[email protected]> wrote: > >> 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 > > _______________________________________________ openbox mailing list [email protected] http://icculus.org/mailman/listinfo/openbox