Author Topic: Firefox And Xfce4 Keymapping Questions  (Read 12922 times)

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« on: September 05, 2006, 04:03:52 am »
Well two weeks into my Z experience now and I am slowly starting to get pdaXrom into shape on my C1000.

I do however have two issues that are occupying most of my time at the moment.

1.  Firefox:  I added all of the pdaxrom beta feeds to my package manager and installed firefox from the feeds.  This seemed to go as planned, but I notice that when I start up firefox it identifies itself at the top of the window as "Deer Park" rather than firefox.  Is this normal???

The other thing I notice with Firefox is that when I try to download something (either a picture, or file) it seems to let me download the first time but if I try to download a second object it freezes up and I have to reboot.  Is this just a memory management problem that I will have to live with?

2.  xfce4: I have trawled through the various topics dealing with xfce4 and tried out both the old version and the beta2 version that Chero has and I really do like it a lot.

The one thing that is keeping me from using it as my default window manager is the keymapping issue and looking through the posts I just cannot work out if this has actually been solved by anybody or not. I really do want to be able to use the "dim"/"brighten" keys and the menu/calender/action/mail/home keys.

Any ideas?
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #1 on: September 05, 2006, 09:16:29 am »
Quote
1. Firefox: I added all of the pdaxrom beta feeds to my package manager and installed firefox from the feeds. This seemed to go as planned, but I notice that when I start up firefox it identifies itself at the top of the window as "Deer Park" rather than firefox. Is this normal???

Mozilla.org Deer Park Alpha Release

 just like Longhorn and Vista with windows...

Quote
The other thing I notice with Firefox is that when I try to download something (either a picture, or file) it seems to let me download the first time but if I try to download a second object it freezes up and I have to reboot. Is this just a memory management problem that I will have to live with?

You will have to turn off the download manager... it is very very resource heavy... I believe so... and turn it off will fix that... I use my led on my wireless card to determine when my download is done :-)

Late
« Last Edit: September 05, 2006, 09:29:05 am by InSearchOf »
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #2 on: September 05, 2006, 10:24:50 am »
Thanks InSearchOf -that makes things a lot clearer!

Turned of the download manager and that certainly seems to have helped.
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #3 on: September 06, 2006, 10:36:57 pm »
Well the firefox issue is sorted out, but I am still wondering about xfce4 and keymapping.

Is there a simple solution to this (like there is for the default WM) or is because it is complicated that I have not been able to find out any information about this problem?

Are other xfce4 users just "living with it"?
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #4 on: September 06, 2006, 10:54:24 pm »
Quote
Well the firefox issue is sorted out, but I am still wondering about xfce4 and keymapping.

Is there a simple solution to this (like there is for the default WM) or is because it is complicated that I have not been able to find out any information about this problem?

Are other xfce4 users just "living with it"?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140892\"][{POST_SNAPBACK}][/a][/div]
Which part are you having difficulty with? xfce4 recognises my calendar etc keys as 'XF86LaunchA' etc and maps them to custom commands with no problem...
SL6000-L, RC12

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #5 on: September 06, 2006, 11:54:38 pm »
Quote
Quote
Well the firefox issue is sorted out, but I am still wondering about xfce4 and keymapping.

Is there a simple solution to this (like there is for the default WM) or is because it is complicated that I have not been able to find out any information about this problem?

Are other xfce4 users just "living with it"?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140892\"][{POST_SNAPBACK}][/a][/div]
Which part are you having difficulty with? xfce4 recognises my calendar etc keys as 'XF86LaunchA' etc and maps them to custom commands with no problem...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140893\"][{POST_SNAPBACK}][/a][/div]

Thanks for the response.  

Which version of xfce4 are you using?  I have been trying both 4.2.2 and Chero's new Beta2 (4.3.90 or something like that!).  At the moment I have it completly messed up (when I start xfce it gives me a garbled screen with three terminals open all in a weird light blue!) and am about to uninstall everything and start again.

I am particulary interested in getting the menu key working and the brightness keys.  In one of the posts on the finetuning xfce topic it does mention using the settings app to map custom commands but I have not been able to find how that works.  When I go into the Windows Manager settings/keyboard I cannot see how to add any new shortcuts.

Hope that makes sense!
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #6 on: September 07, 2006, 08:21:42 am »
Quote
At the moment I have it completly messed up (when I start xfce it gives me a garbled screen with three terminals open all in a weird light blue!) and am about to uninstall everything and start again.

That isnt XFCE... that is "X" well... tinyX that is...

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Firefox And Xfce4 Keymapping Questions
« Reply #7 on: September 07, 2006, 08:42:01 am »
Did you uninstall the 4.2.2 version before installing xfce 4.3.90.2 (4.4 beta2) ?

I remember putting the old version in /usr/local and the new one goes in /usr. When installing both you'll probably get into real troubles.

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #8 on: September 08, 2006, 01:10:27 am »
Quote
Did you uninstall the 4.2.2 version before installing xfce 4.3.90.2 (4.4 beta2) ?

I remember putting the old version in /usr/local and the new one goes in /usr. When installing both you'll probably get into real troubles.

Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140919\"][{POST_SNAPBACK}][/a][/div]


AHHHHH - the light dawns on me!

I think that was probably the problem.  I removed everything I could find that was associated with either version of xfce and just installed the beta2 packages and that seems to work fine.


Now if I could just work out the keymapping!
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!

ntrolls

  • Newbie
  • *
  • Posts: 22
    • View Profile
Firefox And Xfce4 Keymapping Questions
« Reply #9 on: September 11, 2006, 06:15:58 am »
Anybody worked out the keymapping problem? I want to use the brightness control keys too.

Weird thing is, Matchbox uses the same akita.xmodmap/userdefined.xmodmap in its xinitrc script, and you can use those keys in Matchbox. Xfce4, however, somehow overrides this behavior. Maybe I need to look into xfce4 side of configuration...
SL-C1000/pdaXii13

Dobby

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
Firefox And Xfce4 Keymapping Questions
« Reply #10 on: September 11, 2006, 07:56:14 am »
if you've got a 3200 then it's probably not working because the 3200 is not listed in /home/root/xinitrc.xfce.

Look for the line in the case statement like:
Code: [Select]
SL-C1000|SL-C3000|SL-C3100)and add SL-C3200 like this:
Code: [Select]
SL-C1000|SL-C3000|SL-C3100|SL-C3200)

ntrolls

  • Newbie
  • *
  • Posts: 22
    • View Profile
Firefox And Xfce4 Keymapping Questions
« Reply #11 on: September 11, 2006, 10:18:24 am »
Sorry, should've updated my signature. I am using SL-C1000, which is already relfected in my script. Does yours work, Dobby? It seems like none of the mod keys(Fn, Ctrl) works with number keys. I cannot map Ctrl+3 to "setfl -", not to mention Fn+3.

I am still lost
« Last Edit: September 11, 2006, 10:41:56 am by ntrolls »
SL-C1000/pdaXii13

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Firefox And Xfce4 Keymapping Questions
« Reply #12 on: September 11, 2006, 03:54:31 pm »
Quote
I am particulary interested in getting the menu key working and the brightness keys.  In one of the posts on the finetuning xfce topic it does mention using the settings app to map custom commands but I have not been able to find how that works.  When I go into the Windows Manager settings/keyboard I cannot see how to add any new shortcuts.
I presume this is still the area you're having trouble with. Note that it doesn't let you change the default settings (you have to add an entry in the list at left). Then just choose a command shortcut in the bottom box and start pressing buttons. Chero has written a good howto somewhere...
SL6000-L, RC12

ntrolls

  • Newbie
  • *
  • Posts: 22
    • View Profile
Firefox And Xfce4 Keymapping Questions
« Reply #13 on: September 11, 2006, 04:12:51 pm »
I am going to report my experiment with xfce4 4.2.

In the akita.xmodmap, the number keys section is commented off. I first remove those !'s and activated the section. If you start xfce4 with this section activated, xev will distinguish 3 and Fn+3 - it actually recognizes Fn+3 as "F3". If you press Fn+3 in the windows manager, you can create a shortcut with "F3".

However, it seems like xfce4 window manager(which is in charge of the shortcuts, I guess) does not distinguish "3" and "F3". So, the shortcut gets fired whenever you press "3", as well as "Fn+3".

With the function keys enabled(i.e. the number key section commented out), if you press "3" in LeafPad you get "3" on the screen. If you press "Fn+3" nothing happens. If you press "Fn+1", it brings up the "about" dialog which is connected to the shortcut "F1". However, the same thing happens with "1", which makes me believe that xfce4 is not distinguishing those two different inputs.

Any chance this is a bug in xfce4's shortcut routine?
« Last Edit: September 11, 2006, 04:15:50 pm by ntrolls »
SL-C1000/pdaXii13

ntrolls

  • Newbie
  • *
  • Posts: 22
    • View Profile
Firefox And Xfce4 Keymapping Questions
« Reply #14 on: September 11, 2006, 08:11:17 pm »
I found the solution.

You can find all the shortcut you defined in $HOME/.themes/[whatever your shortcut theme name is]/xfwm4/keythemerc : scroll down to the bottom and you will find it.

The cause of problem is that xfce4 does not recognize Fn key as a mod key when getting the input for the shortcut key - I am new to Linux, so don't know the term "mod key" is correct, but you get the idea. It's probably because xfce4 is compiled from the source for the desktop.

So, in keythemerc, you need to specify the Fn key by yourself. Fn key is represented by Mode_switch. So, for an instance,

Code: [Select]
shortcut_5_key = Mode_switch + 3
shortcut_5_exec = /sbin/setfl -

shortcut_6_key = Mode_switch + 4
shortcut_6_key = /sbin/setfl +

This solves the problem nicely. Now I can adjust the screen brightness using Fn+3/Fn+4. You can define the zoom in/out keys using xrandr.
« Last Edit: September 12, 2006, 05:51:15 am by ntrolls »
SL-C1000/pdaXii13