[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, Jan 21st 2009 at 11:47 -0000, quoth Craig White:

=>On Wed, 2009-01-21 at 11:20 -0500, Steven W. Orr wrote:
=>> On Wednesday, Jan 21st 2009 at 08:21 -0000, quoth Craig White:
=>> 
=>> =>Again on Acer Aspire One
=>> =>
=>> =>Looking at this page from Arch Linux page on Acer Aspire One...
=>> =>
=>> =>http://wiki.archlinux.org/index.php/Acer_Aspire_One#Additional_function_keys
=>> =>
=>> =>which suggests that I create mappings for some of the function keys so
=>> =>they do things like control volume, etc. and then to add a link to
=>> =>execute the mappings in .xinitrc
=>> =>
=>> =>Well, F10 doesn't have .xinitrc but it does have /etc/X11/xinit/xinitrc
=>> =>and xinitrc-common but I suspect that a manual edit of either of those
=>> =>is not really something to do with any permanence.
=>> =>
=>> =>What's the suggested method for adding xmodmap entries? Put into a file
=>> =>in /etc/X11/xinit/xinitrc.d ?
=>> =>
=>> =>Craig
=>> =>
=>> =>PS: I edited the Acer Aspire One page on FedoraProject wiki to reflect
=>> =>the few easy steps to make the built-in camera work (for those with an
=>> =>Acer Aspire One).
=>> =>
=>> 
=>> Look in /etc/X11/xinit/xinitrc-common
=>> 
=>> All you need to do is to create a ~/.Xmodmap file and it should get pulled 
=>> in.
=>----
=>makes sense but doesn't seem to like me  ;-(
=>
=>[[email protected] ~]$ ls -al ~/.Xmodmap
=>-rw-rw-r-- 1 craig craig 220 2009-01-21 06:00 /home/craig/.Xmodmap
=>
=>[[email protected] ~]$ cat .Xmodmap
=>keycode 160 = XF86AudioMute
=>keycode 174 = XF86AudioLowerVolume
=>keycode 176 = XF86AudioRaiseVolume
=>keycode 223 = XF86Standby
=>keycode 239 = XF86KbdBrightnessDown
=>keycode 123 = XF86KbdBrightnessUp
=>keycode 210 = XF86Display
=>
=>[[email protected] ~]$ dumpkeys|grep 123
=>keycode 123 =
=>
=>[[email protected] ~]$ dumpkeys|grep 174
=>keycode 174 =
=>
=>This is after creating ~/.Xmodmap and logging out and logging back in.
=>Went a step further and rebooted - same.
=>
=>;-(
=>

I just looked. It looks like the ~/.Xmodmap doesn't get pulled in unless 
there is a ~/.Xkbmap 

I don't know what that is or why it's there, BUT! it looks like if you 
just create an empty file called ~/.Xkbmap then it should all work.

The relevant phrase in /etc/X11/xinit/xinitrc-common is this:


userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

# merge in defaults
[ -r "$sysresources" ] && xrdb -merge "$sysresources"
[ -r "$userresources" ] && xrdb -merge "$userresources"

# merge in keymaps
if [ -r "$sysxkbmap" ]; then
    setxkbmap $(cat "$sysxkbmap")
    XKB_IN_USE=yes
fi

if [ -r "$userxkbmap" ]; then
    setxkbmap $(cat "$userxkbmap")
    XKB_IN_USE=yes
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
    [ -r "$sysmodmap" ] && xmodmap "$sysmodmap"
    [ -r "$usermodmap" ] && xmodmap "$usermodmap"
fi

unset XKB_IN_USE


-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

-- 
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]
  Powered by Linux