Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-28-2006, 03:06 PM
|
#1
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Rep:
|
Screenshot with XFCE
I want to take screenshot in XFCE using the print-screen keyboard key. Am using slackware-current. using xev I found that the keycode for my print-screen key is 111. I tried running:
Code:
xmodmap -e "keycode 111 = import -w root $HOME/screenshot.png" &
And I got
Code:
xmodmap: commandline:1: bad keysym name 'import' in keysym list
xmodmap: commandline:1: bad keysym name '-w' in keysym list
xmodmap: commandline:1: bad keysym name 'root' in keysym list
xmodmap: commandline:1: bad keysym name '/home/ajitabhp/screenshot.png' in keysym list
xmodmap: 4 errors encountered, aborting.
[1]+ Exit 1 xmodmap -e "keycode 111=import -w root $HOME/screenshot.png"
How do I map this?
|
|
|
05-28-2006, 03:09 PM
|
#2
|
Member
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496
Rep:
|
In xfce I tend to use their build in hotkey manager. Run "xfce-setting-show", and go to "Window Manager", then the "Keyboard" tab, then "Add" a new profile. In the "command shortcuts" section you can assign your key to whatever command you want. In my case "Print Scrn" button came up as "Print" in the xfce profile, and works fine for screenshots.
Hopefully that helps, as I'm not sure how to do it using just xmodmap.
|
|
|
05-29-2006, 04:27 AM
|
#3
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Original Poster
Rep:
|
I tried that also. After typing the command as
Code:
import -w root $HOME/screenshot.png
When I pressed <PrtSc> key on my keyboard, it appeared as 'Menu' and now when I am just pressing tit I get two short beeps.
Any ideas?
|
|
|
05-29-2006, 11:12 AM
|
#4
|
Member
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496
Rep:
|
Hmm, you might need to run import from a terminal, like:
Code:
rxvt -e "import -w root /home/bla/screenshot.png"
Also, you might want to try expanding $HOME (I'm not sure if the xfce shortcuts do that or not).
Maybe that'll have more luck...
|
|
|
06-29-2006, 04:14 AM
|
#5
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,704
|
i think scrot can make screenshot
scrot sthg ...
(ksnapshot too )
in fvwm, you can use the PRINT SCREEN KEY:
via key binding in .fvwm/.fvwm2rc
Quote:
Key Print A N Exec exec scrot -d 1 ~/screensnapshot/screensnapshot_"$(date)".png
|
that can trigger ideas maybe ...
you can upadte this for xfce ...
Last edited by Xeratul; 06-29-2006 at 03:24 PM.
|
|
|
06-29-2006, 02:40 PM
|
#6
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
Quote:
Originally Posted by ajitabhpandey
and now when I am just pressing tit I get two short beeps.
Any ideas?
|
Damn! I thought this was a family show!
There's some stuff about you we don't wanna know, bud.
|
|
|
06-29-2006, 03:41 PM
|
#7
|
Member
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225
Rep:
|
I use a script and start it with a hotkey.
Code:
#!/bin/bash
/usr/bin/import $HOME/screenshot-$(date '+%Y-%m-%d-%T').png
exit 0
Fluxx.
|
|
|
07-02-2006, 03:56 PM
|
#8
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Original Poster
Rep:
|
Quote:
Originally Posted by Randux
Damn! I thought this was a family show!
There's some stuff about you we don't wanna know, bud.
|
That was a mistype (an extra t)
|
|
|
07-02-2006, 03:59 PM
|
#9
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Original Poster
Rep:
|
My whole problem was the mapping of PrintScreen key on the keypad to take a screen shot using xmodmap and after digging in google, found how to tackle that. I have logged this in my techlog ( http://www.ajitabhpandey.info/index.php?id=84)
Hope this would help others also.
|
|
|
07-02-2006, 07:59 PM
|
#10
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,426
|
Well, there is a lazy way to do a screenshot in XFce if you've done a full install of all window managers (KDE, Flux, etc.) I just right click anywhere on the desktop running XFce and all of my apps for KDE also show up. I've used ksnaphot in XFce many times. The other ideas sound good too.
|
|
|
All times are GMT -5. The time now is 12:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|