hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.05k stars 32 forks source link

Keybindings from hypr.conf not working #89

Closed arcolinuxz closed 1 year ago

arcolinuxz commented 1 year ago

Please describe the bug

any key in our hypr.conf is not working

https://github.com/arcolinux/arcolinux-hypr/blob/c4bfb2517c9bc259152db167b0005e973a7d8aa8/etc/skel/.config/hypr/hypr.conf#L73

any key in sxhkd is working https://github.com/arcolinux/arcolinux-hypr/tree/main/etc/skel/.config/hypr/sxhkd

Steps to reproduce: Install our app package on ArcoLinux

Package is renamed to hypr-dev-git (same from AUR - named there hypr-git added xorg-xmodmap as dependency) Using a different naming convention to keep track of your commits to github r369.3e3d943-2 - commit 369 at the moment https://github.com/arcolinux/arcolinux_repo_3party/blob/main/x86_64/hypr-dev-git-r369.3e3d943-2-x86_64.pkg.tar.zst

Install our config package on ArcoLinux

https://github.com/arcolinux/arcolinux_repo/blob/main/x86_64/arcolinux-hypr-git-22.11-06-any.pkg.tar.zst https://github.com/arcolinux/arcolinux-hypr

Expected behavior We would like to be able to use the keybindings particularly quit an application: super + Q

Video 3 issues

  1. keybindings (quit application for example)
  2. ewmh on polybar
  3. system panel icons not responding on a click

https://youtu.be/s84yLa80BFc

Image

hypr-issues

Log: Please attach a log. (paste it into pastebin and paste here the url) The log can be found in a temp file located in /tmp/hypr/hypr.log.

hypr.log

vaxerski commented 1 year ago

usually means another mod is active, like scroll lock / num lock / caps lock.

To avoid num lock blocking your keybinds, use ignore_mod

arcolinuxz commented 1 year ago

It was the num lock

ignore_mod=num_lock added to hypr.conf what is the correct syntax for num_lock? Tried a whole variety. Did not find it in the wiki.

vaxerski commented 1 year ago

LOCK

arcolinuxz commented 1 year ago

I thought I had solved it but ...

if I set num lock off - it all works but If I set num lock on again - it does not work

checked the name with xev -event keyboard and it does read as

KeyRelease event, serial 28, synthetic NO, window 0x6c00001, root 0x1d9, subw 0x0, time 5934248, (472,250), root:(1438,796), state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False

so added the line

ignore_mod=Num_Lock

with capital letters

still no luck

arcolinuxz commented 1 year ago

testing LOCK now

arcolinuxz commented 1 year ago

ignore_mod=LOCK is not working

vaxerski commented 1 year ago

image try one of the MODx ones. Don't have a keyboard with a numlock rn.

arcolinuxz commented 1 year ago

testing

arcolinuxz commented 1 year ago

MOD2 is numlock for me

arcolinuxz commented 1 year ago

Retested on other systems

that was the solution maybe add the line in the example config with a # in front

thanks for the help

one issue down