Hello,
Quick context: For capital letters I use the caps key instead of holding the shift key, and one huge problem I have with Linux is that it: THis OFten HAppen, WHere I’ve ALready DEactivated THe CAps KEy BUt THe NExt LEtter GOes capitalized. I’d also like to say I’m not all that used to linux, but I’ve been having my fair share of fun trying to configure Hyprland from a fresh minimal instalation.
I’ve tried hyprland for a bit on my laptop (i3 samsung book if it makes any difference) and I fixed my caps issue by doing the following:
I edited usr/share/X11/xkb/symbols/caps replacing the “ctrl_modifier” to:
// This changes the <CAPS> key to become a Control modifier,
// but it will still produce the Caps_Lock keysym.
hidden partial modifier_keys
xkb_symbols "ctrl_modifier" {
key <CAPS> {
type="ALPHABETIC",
repeat=No,
symbols[Group1]= [ Caps_Lock, Caps_Lock ],
actions[Group1]= [ LockMods(modifiers=Lock),
LockMods(modifiers=Shift+Lock,affect=unlock) ]
};
};
And on my Hyprland config I did:
input {
kb_layout = br
kb_model = abnt2
kb_options = caps:ctrl_modifier
follow_mouse = 2
accel_profile = flat
}
It worked, and I was happy. But then I decided it was time to install hyprland in my desktop (Ryzen 5 8600G if that makes any difference) and… it doesn’t really work…
Mind that:
- As I was configuring my laptop, I took note of every single step. I wrote down every single package I had downloaded and every single configuration I did. I followed the exact same steps on my desktop.
- My ~/.config/hypr/ is a git repo, so I’m 100% sure I have the exact same configs on both my laptop and my desktop.
- I was afraid that maybe I had done something wrong on editing usr/share/X11/xkb/symbols/caps in my desktop, so I actually copied over the file from my laptop to my desktop.
When I start hyprland on my desktop I get the following message on top:
Invalid keyboard layout passed. ( rules: , model: abnt2, variant: , options: caps:ctrl_modifier, layout: br )
Hyprland may not work correctly
If I change kb_options to something else on my desktop, the message goes away. I’m not sure what is causing this. Please help.
If I was too vague or maybe didn’t give enough information I’m more than happy and up to answer any further questions that might help you help me. Again, I’m somewhat of a Linux Noob, so I’m hoping this is a very dumb mistake I made.
Thanks in advance.