You are not logged in.

#1 2009-03-12 14:37:07

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

xfce autostart + xmodmap doesnt work

well, to be exact: it seems to work:

this is the script i execute (~/test):

#!/bin/sh
/usr/bin/xmodmap -v /home/rob/.Xmodmap &> /tmp/xmodm

which produces:


$> cat /tmp/xmodm 
! /home/rob/.Xmodmap:
! 1:  remove lock = Caps_Lock
! Keysym Caps_Lock (0xffe5) corresponds to keycode(s) 0x42
        remove lock =  0x42
! 2:  add mod4 = Caps_Lock
        add mod4 = Caps_Lock
!
! executing work queue
!
        remove lock =  0x42
        add mod4 = Caps_Lock

but xfce seems to reset that (??)

if i run ~/test afterwards, everything works as expected


☃ Snowman ☃

Offline

#2 2009-03-13 20:26:10

jperry
Member
Registered: 2009-01-30
Posts: 17

Re: xfce autostart + xmodmap doesnt work

Hello, I was having the same problem after upgrading to Xfce 4.6. Even when I ran xmodmap from the command line, the keyboard behavior wasn't changed.

Try going to the Xfce keyboard settings, then to the "layout" tab, and check "Use system defaults." Then log out and back in again. This seemed to be the thing that fixed it for me.

Offline

#3 2009-03-14 10:43:52

cavesnow
Member
Registered: 2009-03-11
Posts: 5

Re: xfce autostart + xmodmap doesnt work

I am no expert but there is something fishy going on with xfce's keyboard support. Could someone take a look at my problem that I tried to diagnose as best as I could. It seems something similar:
http://bbs.archlinux.org/viewtopic.php?id=67297

Offline

#4 2009-04-09 20:09:28

lollerskates
Member
Registered: 2007-10-27
Posts: 10

Re: xfce autostart + xmodmap doesnt work

I'm running into a similar issue.

#!/bin/sh
/usr/bin/xmodmap -v -e 'clear Lock' -e 'keycode 66 = Escape'   &> /tmp/xmodm

$ cat /tmp/xmodm 
! 1:  clear Lock
        clear lock
! 1:  keycode 66 = Escape
        keycode 0x42 = Escape
!
! executing work queue
!
        clear lock
        keycode 0x42 = Escape

It's really weird since if I run that manually, it works perfectly, but it seems to not work as a startup script, even though it runs (and has the same output from both runs of the script)...

Edit: This issue is gone after forcing xfce to use the settings in X for the keyboard as opposed to its own settings. Hmm... maybe xfce resets the keyboard as it starts up, so any temporary mappings are gone? *shrugs* It works for me now, although it was working before I removed some things from starting up and disabled session saving.

Last edited by lollerskates (2009-04-09 22:33:15)

Offline

Board footer

Powered by FluxBB