LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-28-2006, 03:06 PM   #1
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Rep: Reputation: 0
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?
 
Old 05-28-2006, 03:09 PM   #2
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
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.
 
Old 05-29-2006, 04:27 AM   #3
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
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?
 
Old 05-29-2006, 11:12 AM   #4
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
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...
 
Old 06-29-2006, 04:14 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,704

Rep: Reputation: 256Reputation: 256Reputation: 256
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.
 
Old 06-29-2006, 02:40 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Cool

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.
 
Old 06-29-2006, 03:41 PM   #7
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
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.
 
Old 07-02-2006, 03:56 PM   #8
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
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)
 
Old 07-02-2006, 03:59 PM   #9
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 07-02-2006, 07:59 PM   #10
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,426

Rep: Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839Reputation: 3839
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 06:29 AM
Taking a screenshot using Xfce question. libranikki Linux - General 3 09-11-2004 12:17 PM
screenshot xviddivxoggmp3 Slackware 2 03-18-2004 08:34 PM
screenshot compu73rg33k Linux - Software 4 02-16-2004 07:13 PM
How do I take a screenshot? gonus Linux - Newbie 9 07-11-2002 08:19 PM

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

All times are GMT -5. The time now is 12:47 AM.

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