Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse bindings doesnt work with numlock on #16

Closed
ghost opened this issue Dec 2, 2012 · 14 comments
Closed

Mouse bindings doesnt work with numlock on #16

ghost opened this issue Dec 2, 2012 · 14 comments

Comments

@ghost
Copy link

ghost commented Dec 2, 2012

  1. Turn numlock on
  2. Use mouse bindings
@c00kiemon5ter
Copy link
Contributor

this is actually a bug (or design decision?) with your prefered keybinder (guessing xbindkeeys)

@ghost
Copy link
Author

ghost commented Dec 2, 2012

Mouse binds are provided by bspwm
https://github.com/baskerville/bspwm#mouse-bindings

@c00kiemon5ter
Copy link
Contributor

ah, misread that, sorry

@baskerville
Copy link
Owner

I pushed a workaround in the numlock branch (2a2bdc3). Can you test it?

@ghost
Copy link
Author

ghost commented Dec 3, 2012

Numlock branch didnt fix the problem

@baskerville
Copy link
Owner

I forgot to ungrab (fixed in 9eeb60e), if you set button_modifier in your autostart file, please try again.

Otherwise, I'll make a debug commit so we can understand what's happening under the hood.

@ghost
Copy link
Author

ghost commented Dec 3, 2012

That code seems work with Capslock on, but no others

@baskerville
Copy link
Owner

Please checkout the numlock-debug branch and add

options=('!strip')

to the header of bspwm's PKGBUILD.

Then use your mouse bindings with and without NumLock and send me the relevant lines from bspwm's stdout (the lines starting with "button press").

@ghost
Copy link
Author

ghost commented Dec 3, 2012

button press 1 0 0 #normal
button press 1 16 0 # numlock
button press 1 18 0 # numlock and capslock
button press 1 2 0 # capslock

I didnt test scroll lock because I dont have one

@baskerville
Copy link
Owner

Ok, I see... NumLock is Mod2.
What's the output of bspc get button_modifier?

@ghost
Copy link
Author

ghost commented Dec 3, 2012

bspc get button_modifier
mod4

@baskerville
Copy link
Owner

Should be fixed by 9b23755 (in the numlock branch).
The fix involves two new settings: numlock_modifier and capslock_modifier (the default values should be ok with your setup).

@ghost
Copy link
Author

ghost commented Dec 3, 2012

Works

@baskerville
Copy link
Owner

Ok, merged in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants