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

Notices

Reply
 
Thread Tools
Old 12-31-2004, 01:51 PM   #1
michaeljh2000
LQ Newbie
 
Registered: Dec 2004
Distribution: Slackware 10
Posts: 17
Thanked: 0
key mappings


[Log in to get rid of this advertisement]
I was able to install 3ddesktop. Now, I just want to map a key. I tried gconf-editor, per suggestion at 3ddesktop website, but it does not seem to be working.

How can I map the F12 key to execute /usr/local/bin/3ddesk?

Slackware 10 w/KDE

Thanks.
michaeljh2000 is offline     Reply With Quote
Old 01-04-2005, 09:09 AM   #2
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157
Thanked: 0
in /home/user there should be a .xdefaults file

just type
F12 = /usr/local/bin/3ddesk

which wm are you using, in fluxbox you can map keys in /home/user/.fluxbox/keys file
it's the same thing though...
I think that should do it...
dslboy is offline     Reply With Quote
Old 01-07-2005, 03:35 PM   #3
michaeljh2000
LQ Newbie
 
Registered: Dec 2004
Distribution: Slackware 10
Posts: 17
Thanked: 0

Original Poster
Nope, didn't work. Thanks anyway...
michaeljh2000 is offline     Reply With Quote
Old 01-07-2005, 07:31 PM   #4
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware 12.1
Posts: 228
Thanked: 1
3ddesktop, if I remember right (been awhile since I used it), needs to be run with the --acquire command first:
Code:
3ddesk --acquire
then the regular command to turn it on:
Code:
3ddesk
I would try mapping 2 keys to do these commands and see if it works that way. If not, you might try man 3ddesk or 3ddesk --help for more options.

MagicMan

Last edited by fcaraballo; 01-07-2005 at 07:35 PM..
fcaraballo is offline     Reply With Quote
Old 01-08-2005, 02:20 PM   #5
michaeljh2000
LQ Newbie
 
Registered: Dec 2004
Distribution: Slackware 10
Posts: 17
Thanked: 0

Original Poster
Quote:
Originally posted by MagicMan
3ddesktop, if I remember right (been awhile since I used it), needs to be run with the --acquire command first:
Code:
3ddesk --acquire
then the regular command to turn it on:
Code:
3ddesk
I would try mapping 2 keys to do these
commands and see if it works that way. If not, you might try man 3ddesk or 3ddesk --help for more options.

MagicMan
I can run 3ddesk from shell easily. I just want to map a key so "3ddesk" does not need to be typed.
michaeljh2000 is offline     Reply With Quote
Old 01-09-2005, 03:09 AM   #6
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware 12.1
Posts: 228
Thanked: 1
Just map those 2 commands to the keys you want to use in the ~/.fluxbox/keys file. Here is an example:
Code:
None F11 :ExecCommand /usr/bin/3ddesk --acquire &
None F12 :ExecCommand /usr/bin/3ddesk &
then do a Reload config and it should work.

MagicMan
fcaraballo is offline     Reply With Quote
Old 01-09-2005, 05:02 PM   #7
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware 12.1
Posts: 228
Thanked: 1
I re-read your original post and I just now noticed you were using KDE. Sorry. I think all you need to do is add 2 shortcuts for the commands to the KDE menu using Menu Editor. After they are in the menu, you should be able to go to Control Center/Region & Language/Keboard Shortcuts/Command Shortcuts tab (KDE 3.2.x), find your shortcuts, and then configure the keyboard keys you would like to use.

MagicMan
fcaraballo is offline     Reply With Quote
Old 01-10-2005, 07:45 PM   #8
michaeljh2000
LQ Newbie
 
Registered: Dec 2004
Distribution: Slackware 10
Posts: 17
Thanked: 0

Original Poster
Quote:
Originally posted by MagicMan
I re-read your original post and I just now noticed you were using KDE. Sorry. I think all you need to do is add 2 shortcuts for the commands to the KDE menu using Menu Editor. After they are in the menu, you should be able to go to Control Center/Region & Language/Keboard Shortcuts/Command Shortcuts tab (KDE 3.2.x), find your shortcuts, and then configure the keyboard keys you would like to use.

MagicMan
I was able to follow your instructions, but it still does not work.
Thanks anyway.

Last edited by michaeljh2000; 01-10-2005 at 10:18 PM..
michaeljh2000 is offline     Reply With Quote
Old 01-11-2005, 03:07 AM   #9
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware 12.1
Posts: 228
Thanked: 1
Do the shortcuts you made work correctly? Try running them from the menu. If they do not work, the keys you mapped to those shortcuts will not work either.

MagicMan
fcaraballo is offline     Reply With Quote
Old 01-12-2005, 01:08 AM   #10
michaeljh2000
LQ Newbie
 
Registered: Dec 2004
Distribution: Slackware 10
Posts: 17
Thanked: 0

Original Poster
Yes, the shortcuts work from the menu. But, not when I try to map them per your instructions.
I have tried various key combinations with no luck.
michaeljh2000 is offline     Reply With Quote
Old 02-04-2005, 04:13 PM   #11
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79
Thanked: 0
fluxbox

hey this also will work with using fluxbox

open .fluxbox/menu in an editor and add

[exec] (3ddesk) {3ddesk} somewhere
bejiita is offline     Reply With Quote
Old 12-25-2006, 12:57 PM   #12
ibnpaul
LQ Newbie
 
Registered: Dec 2006
Posts: 2
Thanked: 0
HI,

I got the keymapping working fine. All you have to do is set the key in KDE Menu Editor. There is a small dialog box at the bottom right corner for doing this (at least there is in kde-3.5.5). I hope this helps.
ibnpaul is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Keyboard Mappings doralsoral Linux - Hardware 2 03-20-2005 11:29 AM
Invalid keyboard mappings iskrem Linux - Software 1 02-27-2005 03:44 PM
Keyboard shortcuts and Mappings in KDE lazlow69 Linux - Software 5 01-10-2004 03:54 AM
extra key mappings lechuck Linux - Newbie 6 11-04-2003 03:31 PM
Putty weirding up key mappings jbeninger Linux - Software 0 08-04-2003 10:21 PM


All times are GMT -5. The time now is 12:49 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration