hyprwm / Hypr

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

Keybinds are not applied #48

Closed BeZaBel closed 2 years ago

BeZaBel commented 2 years ago

Please describe the bug When starting Hypr the config file is loaded fine, my execs work just fine, but the keybinds are not working. I made an exec to start a terminal at launch and be able to interact with Hypr. Checking the debug log it says that the keybinds are not applied because the status bar is not null (see the log).

Steps to reproduce: Just launching Hypr normally through SDDM. I am installing Hypr through the AUR package in Arch Linux.

Expected behavior Keybinds loaded so it is usable.

Log: https://pastebin.com/pdPywPde

vaxerski commented 2 years ago

Checking the debug log it says that the keybinds are not applied because the status bar is not null

that is correct and expected behavior. Attach your hypr.conf please

BeZaBel commented 2 years ago

Here is my config file. Is just a slight modification of the example file.

https://pastebin.com/JhPhsUbx

vaxerski commented 2 years ago

Your keybinds are being applied:

[LOG] Reloading the config!
[LOG] Applying 4 keybinds to X.
[LOG] Applying 4 keybinds to X.

You most likely are missing xmodmap installed :P

Added a mention of that to the README :)

BeZaBel commented 2 years ago

I have installed xmodmap and the problem still persists. I think it is somehow related with the mapping on my keyboard because messing with it breaks sometimes i3 too. Nonetheless, I can't get any mod key to work. Neither Alt, Ctrl or Shift.

vaxerski commented 2 years ago

do you get the correct amount of keybinds applied? it should say in the log.

Try turning off any other mods, for example scroll lock, which is a common oopsie people make.

carabistouflette commented 2 years ago

i had the same problem

carabistouflette commented 2 years ago

to fix it just remove the , at the end

carabistouflette commented 2 years ago

(make a discord server pls)

vaxerski commented 2 years ago

to fix it just remove the , at the end

at the end of...? I don't see where the config is wrong, and the logs don't show anything out of the ordinary

(make a discord server pls)

what for? spam and trolls?

carabistouflette commented 2 years ago

at the end of some keybind there is some time a , i don't know why but i just removed it and now it works

carabistouflette commented 2 years ago

and a discord server is not always toxic, especially for little project like your

vaxerski commented 2 years ago

at the end of some keybind there is some time a , i don't know why but i just removed it and now it works

idk how as it should be there, but okaay

it signifies an empty argument

jkim5959 commented 2 years ago

I have similar problem too. Weird thing is, it works at first but then after some minutes it suddenly doesn't work. None of the key bindings. I do have xmodmap installed.

I will try removing ,s soon tho.

Edit: removing , didn't work. In fact, it actually broke the command.

Coud it be possible that this is happening because I'm on debian 11 stable? like some dependencies could be outdated for such new projects.

vaxerski commented 2 years ago

oh god not debian

it might be, highly probable.

If you can, see what the config says when keybinds go dead. You can use

watch -n 0.3 "cat /tmp/hypr/hypr.log | grep -v \"dirty\" | grep -v \"nimation\" | tail -n 40"

to watch the config in real time with only the meaningful logs

BeZaBel commented 2 years ago

Try turning off any other mods, for example scroll lock, which is a common oopsie people make.

I turned it off and now everything works! Thanks!

vaxerski commented 2 years ago

closing then, cheers.

vaxerski commented 2 years ago

(make a discord server pls)

ok, i made it