You are not logged in.

#1 2008-08-31 01:13:37

yo
Member
Registered: 2008-08-31
Posts: 25

multimedia keys in xfce?

i can use it in gnome but in xfce dont work.
i tried  put this in console :xmodmap -e 'keycode 178 = WebBrowser'
but i get:
xmodmap:  commandline:1:  bad keysym name 'WebBrowser' in keysym list
xmodmap:  1 error encountered, aborting.

and i dont have and .Xmodmap in my user directory to edit

Offline

#2 2008-08-31 07:12:06

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: multimedia keys in xfce?

you can use binkeys to first listen for an event and find the keycode for a key you press and then just use that code and bind it to launch the web browser

pacman -Sy xbindkeys
xbindkeys --help

The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#3 2008-09-01 00:29:01

yo
Member
Registered: 2008-08-31
Posts: 25

Re: multimedia keys in xfce?

i solved it
i create a .Xmodmap file in /home/user and put this line:
keycode 178 = XF86HomePage
then i put in console  xmodmap ~/.Xmodmap (maybe its not necesary and just with ctrl alt bacspace is enough)
thats it, to know the keycodes i used command xev
i leave a list of keycodes and names

Acer Travelmate 6000 (6003)
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 160 = XF86AudioMute
keycode 236 = XF86Mail
keycode 178 = XF86WWW
Logitech Internet Keyboard
keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 236 = XF86Mail
keycode 229 = XF86Search
keycode 230 = XF86Go
keycode 178 = XF86HomePage
keycode 223 = XF86Sleep

Offline

#4 2008-09-02 04:52:12

churchyard
Member
From: Prague, CZE
Registered: 2008-05-06
Posts: 2
Website

Re: multimedia keys in xfce?

You should run xmodmap ~/.Xmodmap at each Xfce start (add this command to autostarted apps).

Offline

#5 2008-09-03 13:44:33

lmsguerr
Member
From: Loulé-Algarve-Portugal
Registered: 2008-05-20
Posts: 49

Re: multimedia keys in xfce?

I've found the keycodes of my keyboard with xev and i've created a .Xmodmap on home directory and i runned xmodmap ~/.Xmodmap... but i still haven't my multimedia keys working! What am i missing?!

(pck computers keyboard)


Linux /  4.18.5-ARCH / x86_64 / Intel I5-4460s /  Intel® HD Graphics 4600  / MSI B85-G43 Gaming

Offline

#6 2008-09-03 17:36:36

yo
Member
Registered: 2008-08-31
Posts: 25

Re: multimedia keys in xfce?

"You should run xmodmap ~/.Xmodmap at each Xfce start (add this command to autostarted apps)." i dont do it i think gdm does but maybe with others its necessary.

"I've found the keycodes of my keyboard with xev and i've created a .Xmodmap on home directory and i runned xmodmap ~/.Xmodmap... but i still haven't my multimedia keys working! What am i missing?!"

are you sure that the name of the key is right?
Do you asign the key to a shorcut?

try xmodmap -e 'keycode yourCode = YourName'

Offline

#7 2008-09-03 19:51:20

lmsguerr
Member
From: Loulé-Algarve-Portugal
Registered: 2008-05-20
Posts: 49

Re: multimedia keys in xfce?

That's it!! It could only be a simple thing, duhhh.... I needed to asign the key to a shortcut on keyboard settings!!! And, for me, wasn't necessary to add the command "xmodmap ~/.Xmodmap" to autostarted apps cause XFCE recognizes it...

Thanks yo

PS: does anyone know the command for "prev", "next", "stop" and "refresh" in firefox?

Last edited by lmsguerr (2008-09-03 19:53:05)


Linux /  4.18.5-ARCH / x86_64 / Intel I5-4460s /  Intel® HD Graphics 4600  / MSI B85-G43 Gaming

Offline

Board footer

Powered by FluxBB