VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Shortcuts for quick volume change in IceWM with VL6.0 Light and ALSA.  (Read 1017 times)

vovane

  • Member
  • *
  • Posts: 50

I wrote a binding in ~/.icewm/keys file,but they don't work...Here they are:
Code: [Select]
key "Ctrl+Alt+KP_Subtract" amixer set Master 1- # lower volume
key "Ctrl+Alt+KP_Add" amixer set Master 1+ # raise volume

In xterm same commands work well.What should i do with it?Thanks in advance.
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4133
Re: Shortcuts for quick volume change in IceWM with VL6.0 Light and ALSA.
« Reply #1 on: November 15, 2009, 04:06:09 pm »

Did you restart Icewm after making the changes?
Logged

vovane

  • Member
  • *
  • Posts: 50
Re: Shortcuts for quick volume change in IceWM with VL6.0 Light and ALSA.
« Reply #2 on: November 16, 2009, 04:50:28 am »

Of course.I also tried enclosing each piece of this in ""'s,but that didn't help.Maybe i am mistaking with the keys?
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4133
Re: Shortcuts for quick volume change in IceWM with VL6.0 Light and ALSA.
« Reply #3 on: November 16, 2009, 02:57:52 pm »

I did a quick test using:
Code: [Select]
key "Ctrl+Down"        amixer set Master 1- # lower volume
key "Ctrl+Up" amixer set Master 1+ # raise volume

It works fine using those keys (Alt and the up/down arrows).

To identify key events, run command "xev" in a terminal. That way you can see what codes your keys (and mouse buttons, etc.) produce.

Logged

vovane

  • Member
  • *
  • Posts: 50
Re: Shortcuts for quick volume change in IceWM with VL6.0 Light and ALSA.
« Reply #4 on: November 17, 2009, 04:29:19 am »

That is just the way i found what to write:)Maybe keypad plus and minus are unbindable or something?I will use these keys now,thanks.But i am still curious!:)

UPD:ctrl+shift+up and ctrl+shift+down work well,thanks.
« Last Edit: November 17, 2009, 04:32:29 am by vovane »
Logged