LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-02-2006, 04:10 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Fluxbox: How can we make use of the print key ?


I would like to do in .fluxbox/keys:
Mod4 printkey :ExecCommand scrot -d 1 screenshot.png

But it is not wokring...
 
Old 12-02-2006, 02:19 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Are they key identifiers case sensitive? Try Mod4 PrintKey
Also, do you intend for it to be combined with the Window key(Mod4)?
 
Old 12-03-2006, 05:50 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
# screenshots
# xmodmap -pke | grep -i print => xmodmap -e "keycode 111 = F13"
# => i press "Print" and it dumps the screen :-)
#None F13 :ExecCommand scrot -s -q 75 '~/shot-%Y-%m-%d-%H%M%S-$w-$h.jpg'

Last edited by Xeratul; 12-03-2006 at 05:58 AM.
 
Old 12-03-2006, 05:57 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Please find this how to I found in one great config:


Code:
# in .fluxbox/startup
xmodmap -pke | grep -i print &
xmodmap -e "keycode 111 = F13" &


Code:
# in .fluxbox/keys
# change it has you d like for F12 and printkey
# screenshots
# xmodmap -pke | grep -i print => xmodmap -e "keycode 111 = F13"
# => i press "Print" and it dumps the screen :-)
#None F13 :ExecCommand scrot -s -q 75 '~/screensnapshot/shot-%Y-%m-%d-%H%M%S-$w-$h.jpg'
Shift Mod4 F12 :ExecCommand scrot -d 1 screensnapshot_"$(date)".png
None F13 :ExecCommand scrot -d 1 screensnapshot_"$(date)".png
Shift F13 :ExecCommand scrot -d 1 screensnapshot.png



Thread solved

Last edited by Xeratul; 12-03-2006 at 06:00 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FluxBox Key Binding botzko Slackware 1 10-31-2006 06:27 AM
Fluxbox - bind one key to a key combo dracolich Linux - General 0 09-01-2005 03:53 PM
Alt Gr key isn't working in Fluxbox jaakkop Linux - Software 0 04-03-2005 11:07 AM
Fluxbox 0.9.4: trouble with key-bindings...? apeekaboo Linux - Software 7 02-05-2004 03:45 PM
Print Screen key? hatekill Red Hat 5 10-16-2003 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:20 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