Re: [vox-tech] using xmodmap to swap modifier key locations

2003-10-11 Thread Henry House
Qå lördag, 11 oktober 2003, skrev Shawn P. Neugebauer:
 Pete alluded to, but did not describe, the xev utility.  Use it to figure
 out *precisely* what X thinks the keys are.  Do this before applying
 the new map (so, if you've already done so, you'll need to restart X).  
 I doubt you need to do anything to your XF86Config file(s), necessarily,
 you just need to find the keycodes, keysyms, etc. for your keyboard.
 
 FYI, I use this trick in every linux environment I get my hands on, and
 it's always worked as is.

Thank you everyone for your replies. Things just get stranger and
stranger---see below. I should probably mention at this point that my real
goal is not to swap control and caps lock (I want to understand how to do
that since it is a common and seemingly simple example). My real goal is:

1. Make the left and right Alt keys send control.
2. Make the left Control key send alt.
3. Make the right Control key send AltGr.
4. Make the CapsLock key send compose.
5. Have no key send caps lock.
6. Maybe do somthing with the Win logo and Menu logo keys too, but this
is a low priority since my usual keyboard has neither or these keys.

So, back to swapping control and caps lock. Before I modify anything, xmodmap reveals 
the following:


xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift   Shift_L (0xa),  Shift_R (0xb)
lock  
control Control_L (0x8),  Control_R (0x9)
mod1Meta_L (0xc),  Meta_R (0xd),  Alt_L (0xe),  Alt_R (0xf)
mod2  
mod3  
mod4  
mod5  


Note that no keys are assigned to lock! Shouldn't this mean that there is no
caps lock? But the Caps lock key does in fact turn on caps lock. According
to xev, Caps Lock sends Caps_Lock, and Control sends Control_L.

Now I run the following xmodmap commands:

!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L


with the result that Caps Lock is still caps lock and does not send
control. (It still sends Caps_Lock according to xev.) What is really strange
is that Control now works like a shift key! Meaning, that if I hold down
Control and press letter keys, I get capital letters. But number keys are
unaffected. So it is really like a caps lock that does not lock (arguable
more useful than regular caps lock, but still bizarre.) According to xev,
Control sends Caps_Lock also.

Xmodmap reports:


xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift   Shift_L (0xa),  Shift_R (0xb)
lockCaps_Lock (0x8)
control Control_L (0x59),  Control_R (0x9)
mod1Meta_L (0xc),  Meta_R (0xd),  Alt_L (0xe),  Alt_R (0xf)
mod2  
mod3  
mod4  
mod5  


I will keep experimenting.

-- 
Henry House
The unintelligible text that may follow is a digital signature. 
See http://hajhouse.org/pgp for information.  My OpenPGP key:
http://hajhouse.org/hajhouse.asc.



pgp0.pgp
Description: PGP signature


Re: [vox-tech] using xmodmap to swap modifier key locations

2003-10-11 Thread Ryan Castellucci
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 11 October 2003 01:12 pm, Henry House wrote:
 Qå lördag, 11 oktober 2003, skrev Shawn P. Neugebauer:
  Pete alluded to, but did not describe, the xev utility.  Use it to
  figure out *precisely* what X thinks the keys are.  Do this before
  applying the new map (so, if you've already done so, you'll need to
  restart X). I doubt you need to do anything to your XF86Config file(s),
  necessarily, you just need to find the keycodes, keysyms, etc. for your
  keyboard.
 
  FYI, I use this trick in every linux environment I get my hands on, and
  it's always worked as is.

 Thank you everyone for your replies. Things just get stranger and
 stranger---see below. I should probably mention at this point that my real
 goal is not to swap control and caps lock (I want to understand how to do
 that since it is a common and seemingly simple example). My real goal is:

 1. Make the left and right Alt keys send control.
 2. Make the left Control key send alt.
 3. Make the right Control key send AltGr.
 4. Make the CapsLock key send compose.
 5. Have no key send caps lock.
 6. Maybe do somthing with the Win logo and Menu logo keys too, but this
 is a low priority since my usual keyboard has neither or these keys.

 So, back to swapping control and caps lock. Before I modify anything,
 xmodmap reveals the following:


 xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

 shift   Shift_L (0xa),  Shift_R (0xb)
 lock
 control Control_L (0x8),  Control_R (0x9)
 mod1Meta_L (0xc),  Meta_R (0xd),  Alt_L (0xe),  Alt_R (0xf)
 mod2
 mod3
 mod4
 mod5


 Note that no keys are assigned to lock! Shouldn't this mean that there is
 no caps lock? But the Caps lock key does in fact turn on caps lock.
 According to xev, Caps Lock sends Caps_Lock, and Control sends
 Control_L.

 Now I run the following xmodmap commands:

 !
 ! Swap Caps_Lock and Control_L
 !
 remove Lock = Caps_Lock
 remove Control = Control_L
 keysym Control_L = Caps_Lock
 keysym Caps_Lock = Control_L
 add Lock = Caps_Lock
 add Control = Control_L

- -SNIP-

 I will keep experimenting.

try saving the output of `xmodmap -pke` to a file and editing it. Also, see 
my earlier post. The way I got control and caps swapped is diffrent from the 
above, which I think I was unable to get working. See my other post in this 
thread

- -- 
PGP/GPG Fingerprint: 3B30 C6BE B1C6 9526 7A90  34E7 11DF 44F3 7217 7BC7
On pgp.mit.edu, import with `gpg --keyserver pgp.mit.edu --recv-key 72177BC7`
Also available at http://www.cal.net/~ryan/ryan_at_mother_dot_com.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/iKspEd9E83IXe8cRAsd/AKCVqFlf9K2BPnA+0ypqnCVj8scuuQCgpEgX
KPA/qc2HKbInPP6qkU4Wp5g=
=frli
-END PGP SIGNATURE-
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


[vox-tech] Samba issues on my home network solved!

2003-10-11 Thread Richard S. Crawford
I was having an issue with files on my Samba share on my home server
being created by user nobody when I wanted them created with my
account name on that server. I solved this by deleting the homes
share, and creating a new share pointing to my home directory with the
force user and force group options enabled.

Oddly, when I tried naming the share richard, the same name as my
account on the computer, I wasn't able to browse to the share from
Windows or write to it from Windows.  But naming the share rscrawford
made it all work.  Just plain weird.

Remaining issues:

1.  Trying to sync my Palm Pilot (USB connection) causes my Linux
box to freeze up, and the computer must be rebooted.

2.  I cannot get my display working on my Debian laptop.  GNOME is
dead, apparently beyond resurrection, and I still haven't figured
out whether I ought to just blow the partition and reinstall.

Advice on either of these two issues would be very greatly appreciated.

-- 
Slainte,
Richard S. Crawford
AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
Howard Dean for America: http://www.deanforamerica.com
http://www.mossroot.com http://www.stonegoose.com
It is only with our heart that we can see clearly.  What is essential
is invisible to the eye.  --Antoine de Saint Exupery
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech