SliTaz SliTaz Forum

You are not logged in.

#1 2012-09-18 11:37:14

Adel
Member
Registered: 2012-09-18
Posts: 28

keyboard shortcuts/hooks

How do i enable the volume, brightness, mute/unmute...etc buttons?

i found some tutorial that mentioned i need to get to "~/.config/openbox/rc.xml"

but I cannot find this file, do i create one?

also an example would be useful

Offline

#2 2012-09-18 11:51:06

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: keyboard shortcuts/hooks

Hi Adel,

Let me ask you, do you enable hidden files show in your file manager?

Can you see any files beginning with dot in your home folder using PCManFM? If no, you can press Ctrl+H to toggle hidden files show.

Offline

#3 2012-09-18 12:01:11

Adel
Member
Registered: 2012-09-18
Posts: 28

Re: keyboard shortcuts/hooks

oh my bad smile

I have found the file

I am following these instructions:

http://wiki.lxde.org/en/LXDE:Questions#How_do_I_make_my_keyboard_volume_buttons_work.3F

But i can't seem to get anything working, would u give me an example for the mute function?

Offline

#4 2012-09-18 15:47:13

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: keyboard shortcuts/hooks

The commands for muting are

amixer-c 0 sset Master, 0 toggle

the command to increase the volume is

amixer-c 0 sset Master 1 + unmute cap

another control to decrease the volume

amixer-c 0 sset Master 1 - unmute cap

the problem is that the media keys often have codes not standerd and openbox not identify them.

To install xev occurs with tazpkg-gi xorg-xev

type from the terminal xev | egrep-o "keycode. * \)"

then press the media keys, if the terminal scroll code keys ex.

keycode 176 (keysym 0x0, NoSymbol)

nosymbol not mapped, so do not be set directly, and it gets more complicated. : (

Offline

#5 2012-09-18 16:02:17

Adel
Member
Registered: 2012-09-18
Posts: 28

Re: keyboard shortcuts/hooks

I tried doing that but i get a

"-sh: egrep-o: not found

Offline

#6 2012-09-18 16:07:02

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: keyboard shortcuts/hooks

type a full line

xev | egrep-o "keycode. * \)"

Offline

#7 2012-09-18 16:17:31

Adel
Member
Registered: 2012-09-18
Posts: 28

Re: keyboard shortcuts/hooks

yeah that's what I did sad

Offline

#8 2012-09-18 16:36:19

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: keyboard shortcuts/hooks

Sorry there was a error from my copy and paste, repeat correct command

xev | egrep -o "keycode.*\)"

Offline

#9 2012-09-18 18:31:58

Adel
Member
Registered: 2012-09-18
Posts: 28

Re: keyboard shortcuts/hooks

yup worked just fine, I'll try editing the file now

thanks

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 8 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]