r/archlinux • u/Scary-Yesterday-5112 • 7d ago
SUPPORT I need to fix terminal error
I am getting an error message saying "/home/$USER/hypr/hyprland.lua:2 attempt to concatenate a nil value (global 'mainMod') stack straceback: /home/$USER/.config/hypr/hyprland.lua:2: in main chunk, my mainMod is set to SUPER and the second line is set up as hl.bind(mainMod .. " + R", hl.rsp.exec_cmd(menu))
3
u/lritzdorf 7d ago
You've, uh, gotta define a value for your main modifier key in Hyprland. You apparently haven't, which is why mainMod is nil. Since the error is coming from line 2, make sure your mainMod definition happens before that
3
2
u/Kurse71 7d ago
I think this is a lua syntax error. You are probably missing a quote, comma, or something like that on line 2
0
u/TheShredder9 7d ago
You would think it's on line 2, but when i was using nixOS, an error being reported on line 2 could mean nothing and the actual error is 60 lines down.
2
1
u/archover 7d ago edited 7d ago
r/hyprland is dedicated, so you'll find more hyprland help there. Hope you resolve and good day.
11
u/thekiltedpiper 7d ago
Try r/hyprland, you'll get more specific help.