Hi all,

My desired goal is to have my mouse wheel change workspace when not
gobbled up by a program (i.e. when in an empty frame or over an ion
decoration) and when holding down DEFAULT_MOD, to change workspace
regardless of whether the app with focus wants the mouse event.

I have this setup in my next-favourite wm pwm with the following config:

mbind {
        context root
        state Button4
        click "switch_ws_hrot", -1 
}
mbind {
        context root
        state Button5
        click "switch_ws_hrot", 1
}
mbind {
        context window, corner, side, tab, menu, dockwin, root
        state Button4, Mod1
        click "switch_ws_hrot", -1
}
mbind {
        context window, corner, side, tab, menu, dockwin, root
        state Button5, Mod1
        click "switch_ws_hrot", 1
}


My ion attempt is thus:

    mpress("Button4", WScreen.switch_prev),
    mpress("Button5", WScreen.switch_next),

within the global_bindings list in ion-bindings.lua. I also attempted

    mpress(DEFAULT_MOD.."Button4", WScreen.switch_prev),
    mpress(DEFAULT_MOD.."Button5", WScreen.switch_next),

which doesn't work (I wasn't really expecting that one to).

Can anyone suggest a recipe that would do this?
-- 
Jon Dowland
[EMAIL PROTECTED]

Reply via email to