You are not logged in.

#1 2009-05-28 15:45:57

rusty99
Member
Registered: 2009-03-18
Posts: 253

[Solved] Wmii and extra keys

I'm trying out Wmii, which I'm very impressed with so far. The one issue I can't get my head round is keybindings for volume keys, play/pause etc.
Looking over the net there seems to be extremely little info about configuring this (or I'm looking in all the wrong places).
Any suggestions for the best way to set extra keys up?

I'd rather avoid xbindkeys if at all possible, as I've specified keybinds already in Openboxes rc.xml etc.

Last edited by rusty99 (2009-05-29 09:04:22)

Offline

#2 2009-05-28 18:20:22

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: [Solved] Wmii and extra keys

Well, a big question would be what media player you're using. MPD? Something else?

Offline

#3 2009-05-28 19:50:11

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: [Solved] Wmii and extra keys

Mpd + mpc is what I'm using.

Offline

#4 2009-05-28 19:58:00

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: [Solved] Wmii and extra keys

Do you already know how to bind keys to commands in wmii? If so, it should be simple. If not, I'll have to figure out how myself and then help you.

Offline

#5 2009-05-28 23:48:35

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: [Solved] Wmii and extra keys

I can see how to, but it doesn't seem to be working for me. Either I'm putting spaces where tabs should be or I'm doing something else wrong.
wmiir read /keys doesn't show any addition I made after reloading.

I'm seriously tempted to use xbindkeys right now roll

Offline

#6 2009-05-29 07:36:43

kandrews
Member
Registered: 2007-04-21
Posts: 119

Re: [Solved] Wmii and extra keys

Here is how I deal with volume in wmii. Also, I know I have had problems with tabs versus spaces in wmiirc, so I would definitely look into that.

    Key $MODKEY-i
        amixer -q set Master 5%+ &
    Key $MODKEY-o
        amixer -q set Master 5%- &
    Key $MODKEY-u
        amixer -q set Master toggle

Offline

#7 2009-05-29 09:04:02

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: [Solved] Wmii and extra keys

Ok, solved.
I was using vim to edit my wmiirc and it can't have been syntaxing correctly. (Treating tabs as spaces?)
Editted with Mousepad at it works straight away..

Offline

#8 2009-05-29 09:09:20

MattSmith
Member
From: Wellington, New Zealand
Registered: 2009-02-08
Posts: 108

Re: [Solved] Wmii and extra keys

-deleted not relevant-

Last edited by MattSmith (2009-05-29 10:16:14)


A thing of beauty is a joy forever
                         
                               -John Keats

Offline

#9 2009-05-29 09:16:21

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [Solved] Wmii and extra keys

MattSmith wrote:

Hmm, I know there are a lot of fans of mpd out there but I never really had to worry about volume for 2 reasons:

1. i use mplayer for videos so the sound up and down works for volume

2. I use MOC for music, i understand it's not as customizable as MPD, but it uses the "." and the "," key for volume as far as that goes.

other than that I just leave volume at max

just a thought

i dont understand your reasoning... ncmpc has keys for changing volume too... what the poster wanted to do was a GLOBAL hotkey for changing mpds volume, without a client running...


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#10 2009-05-29 10:15:46

MattSmith
Member
From: Wellington, New Zealand
Registered: 2009-02-08
Posts: 108

Re: [Solved] Wmii and extra keys

eek sorry, it's late here my I can now see my post was not relevant, deleting. Sorry to waste time all


A thing of beauty is a joy forever
                         
                               -John Keats

Offline

#11 2009-05-29 16:42:19

kandrews
Member
Registered: 2007-04-21
Posts: 119

Re: [Solved] Wmii and extra keys

I recommend looking at vim's ':list' option so that you can see whether you put a tab or a space. My problem was that I had set expandtab for all files in my .vimrc.

Offline

Board footer

Powered by FluxBB