LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-04-2012, 07:55 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
screenshots in LXDE


hi

I have Wheezy with LXDE.
Which debian package should be installed to make screenshots using keyboard "Print Screen" button?

Last edited by cccc; 03-04-2012 at 07:59 PM.
 
Old 03-04-2012, 08:02 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I could be wrong but I think scrot works that way.
 
Old 03-04-2012, 11:40 PM   #3
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 564

Rep: Reputation: 131Reputation: 131
By default, openbox assigns gnome-screenshot to print and gnome-screenshot -w (capture window) to alt+print.
Code:
    <keybind key="Print">
      <action name="Execute">
        <command>gnome-screenshot</command>
      </action>
    </keybind>

    <keybind key="A-Print">
      <action name="Execute">
        <command>gnome-screenshot -w</command>
      </action>
So you can either install gnome-screenshot or change the above keybind in ~/.config/openbox/rc.xml so as to make it work with scrot.
 
Old 03-05-2012, 04:38 PM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
It's solved now!

According to:

http://wiki.lxde.org/en/How_to_make_screenshots

1.) install scrot

2.) create /usr/bin/screenshot.sh script and make it executable:
Code:
#!/bin/bash
scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Desktop'
3.) add these lines in ~/.config/openbox/lxde-rc.xml:
Code:
<keybind key="Print">
<action name="Execute">
<command>/usr/bin/screenshot.sh</command>
</action>
</keybind>

Last edited by cccc; 03-05-2012 at 05:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opensuse 11.2 lxde or PclinuxOs 2009.4 lxde damipereira Linux - Distributions 1 02-16-2010 02:51 AM
LXer: Fedora 12 LXDE Spin Screenshots LXer Syndicated Linux News 0 12-08-2009 01:50 AM
LXer: Fedora 12 LXDE Spin Screenshots LXer Syndicated Linux News 0 12-07-2009 06:40 PM
Lxde ronlau9 Linux - Software 0 08-04-2008 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration