LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2004, 09:19 AM   #16
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Rep: Reputation: 15

I love serendipity...the real thing, not that mediocre movie with John Cuzak...I was just setting up my new computer with Linux and looking at my Logitech keyboard and thinking "all those keys ... so little function". So you guys have helped me see that they are still useful.
My problem is that I'm old, quit using computers and programming back in '86, and just came back. So I'm really not up to speed yet on hacking up a quick mod file. So... anyone be interested in giving me a "final" version of what ??? file would look like? I got my mouse scrolling by modifying the XF86Config-4 file using pico. So perhaps I can do the same to another file...and no, Mikshaw, I DON't know where to find what they keysymbols are but I would like to> Like we used to say about new guys on the tour (I used to do stage lights on rock shows) "He's so new he doesn't know he's new." I'm that new to Linux.
btw, I'm using Red Hat 7.3 cuz it's "supported" for the 3d graphic content software I'm using...I'll upgrade after I'm sure the SoftImage XSI is fully functional.
Also, if anyone knows a hack to get the thumb button configured as my middle button on the logitech cordless optical, I'd love to hear it.
Thanks for your patience. You guys are great!
Scott
 
Old 02-12-2004, 12:51 PM   #17
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
This is my recommended method, from the top. I can't guarantee it will work for Red Hat, as I've never used that distro and don't know the differences.
Since this uses xmodmap, I'm also going to assume that it works only in an X environment.
--------------------
1- Open a terminal window (aterm, Eterm, xterm, etc).
2- Type "xev". If nothing happens, type "type -p xev" or "which xev" to locate the program.
If nothing comes back, you'll need to install xev (this will likely not be the case).
3- Assuming you have started xev, you should have a small window open, plus your original terminal window. The terminal is what you want to pay attention to.
4- Press a key you want to map, and look at what appears in the terminal. It'll be something like this:
Code:
KeyPress event, serial 25, synthetic NO, window 0x1a00001,
    root 0xaf, subw 0x0, time 3304823, (20,581), root:(52,627),
    state 0x10, keycode 53 (keysym 0x78, x), same_screen YES,
    XLookupString gives 1 bytes:  "x"
You'll be looking for the part that says "keycode 53" In this case 53 is the keycode for the "x" key. Do this for each of the buttons you want to map, and write down the keycode for each. Close xev either with the x button on the application window, or by focusing the terminal and pressing Ctrl+c.
5- You need a /home/you/.Xmodmap file to play with. There's probably a systemwide file available that you can copy to your home. You can find one, if it exists, with "locate Xmodmap". If one or more or the results is a text file, a file with lines containing "remove" "add" "clear" and "keysym" commands, you've found what you need. /etc/X11/Xmodmap is one possible location. Copy this file to your home directory as .Xmodmap (note the dot) and you can edit this file as you wish without disturbing systemwide settings. If you screw up you can just delete this file and start over. If you can't find an Xmodmap file, you can create an empty one with "touch .Xmodmap".
6- Now you need to find out what keysyms are available to be assigned to your buttons. "man xmodmap" says "The list of keysym names may be found in the header file <X11/keysymdef.h> (without the XK_ prefix) or the keysym database __projectroot__/lib/X11/XKeysymDB." So doing a "locate XKeysymDB" tells exactly where to find it. Look into this file and you'll see a list of names which you can assign to your buttons. These names will be added to your ~/.Xmodmap file. My current additions to .Xmodmap are here:
Code:
keycode 223 = XF86Start
!! Email
keycode 236 = XF86Mail
!! Messenger-SMS
keycode 145 = XF86Messenger
!! Webcam
keycode 146 = XF86WebCam
!! Mute
keycode 160 = XF86AudioMute
!! Volume +
keycode 176 = XF86AudioRaiseVolume
!! Volume -
keycode 174 = XF86AudioLowerVolume
!! Media
keycode 237 = XF86Music
!! My Home
keycode 178 = XF86Documents
!! Search
keycode 229 = XF86Search
6- Restart your X server to test the changes. Type "xmodmap -pk" to check it.
7- Now that xmodmap know what your buttons are, you can assign them to commands in your window manager. I use Fluxbox, so that will be my example. Open (or create) ~.fluxbox/keys, and add entries such as this:
Code:
None XF86Mail :ExecCommand aterm -e mutt
"None" means no modifier key is used (Alt, Ctrl, Mod#), XF86Mail is the keysym name, and the rest is the command.

That should be it....hope i didn't forget anything.
 
Old 02-12-2004, 01:18 PM   #18
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Rep: Reputation: 15
That, my friend, is a very complete explanation. I thank you. While I haven't tried it (yet), I will over the next couple days and report back results -- good, hopefully, and bad if some exist.
Thank you for taking the time to scoot me along. I've been wondering what the "search for a particular file" command is...you mentioned it (locate). Like I said, looking to solve a particular problem will frequently add to the information base that enables you to solve others that you may or may not even know you have. So with hopes high, I'm off to Starbuck's to get some more motivation.
Cheers.
Scott
 
Old 02-12-2004, 01:31 PM   #19
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Originally posted by theonlylivinggo
I've been wondering what the "search for a particular file" command is...you mentioned it (locate).
a more reliable, yet slower, way to search for a particular file is "find". Locate uses a database to find its target, so if you have a newly-added file (more recent than the last database update), locate won't find it.
Find is a slight bit more complicated than just "find file" though...you'll want to read the find manpage ('man find' or 'info find') for more information.
 
Old 02-12-2004, 01:39 PM   #20
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Rep: Reputation: 15
cool Thanx. I've been using man, and I've linked to the online manual, but it's sort of like a dictionary where you need to be able to spell the word so you can look up how to spell the word. If you don't know what the command might be, then it's just guessing to find the command the actually performs the function. Some or obvious if you're familar with Linux syntax (ls = listt) others cryptic (mv = rename; I still haven't got a clue where that mnemomic came from).
Anyway, thanks for the tip(s). I shall be in touch regarding keyboard setup. You wouldn't happen to know anything about SoftImage XSI video compression format plugins, would you?
Cheers.
Scott
 
Old 02-12-2004, 02:52 PM   #21
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
No idea about softimage.

mv is actually short for move...when you move something to a new filename in the same directory you're essentially just renaming it.

You could try 'ls /bin' 'ls /usr/local/bin' 'ls /blah/blah/bin' etc...to see what commands are available. If you're curious about one, then 'man commandname' to find out a bit about it.
You could also check http://linuxcommand.org/ and http://tldp.org/guides.html for pointers
 
Old 02-12-2004, 03:19 PM   #22
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Rep: Reputation: 15
that is the approach I've been taking; look up the commands in man, or else just trying what I think might be a command in man.
Do you know anything about the email systems? I've configured Mozilla mail and it won't logon to remote host. I configured Ximian Evolution and it'll do everything BUT mail; in fact the mailbox (in and out) both show -1 files in them.
I'm so stumped and this is something that really does need to work.
Cheers and tears.
 
Old 02-12-2004, 03:39 PM   #23
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Also can't help you there i'm afraid. Mail is one of the things I've allowed the system to take care of for me however the default was originally set up. All i ever do is use FetchYahoo to bring in the mail, and mutt to read it....no idea how it works yet.
 
Old 02-12-2004, 03:42 PM   #24
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Rep: Reputation: 15
right after I sent that email I deleted all the accounts (again, for the 6th time), set them back up exactly the same, and now they work! Too weird, but I got mail.
Thanks for all your help/support, etc.
I really am giving it a rest now.
Scott
 
Old 10-17-2004, 08:23 PM   #25
moschi
Member
 
Registered: Mar 2004
Location: boulder, co
Distribution: slack 12, debian 4, ubuntu server 6.10
Posts: 68

Rep: Reputation: 15
nevermind...

Last edited by moschi; 10-18-2004 at 01:22 AM.
 
  


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
How to enable multimedia buttons? kornerr Linux - General 8 02-14-2006 04:18 AM
multimedia buttons v1pEr Linux - Laptop and Netbook 5 03-10-2005 12:24 PM
Looking for a program for my multimedia keyboard setlec_seta Mandriva 0 10-29-2004 09:15 AM
HI, I have a problem with the multimedia buttons in my keyboard... SpOmA Linux - Hardware 10 09-21-2004 08:05 PM
Multimedia keys/mouse buttons Narooze Linux - Hardware 7 04-20-2004 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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