You are not logged in.
Pages: 1
Hellooo, i need to enable scroll lock on my pc because it's the only way to turn my keyboard rgp, yes only when scroll lock led is on it's weird i know but it's a really cheap china keyboard.
I tried searching on google but i couldn't find any answer beside the two above and it somehow doesn't work not at all
I tried the
brightnessctl -d input25::scrolllock s 1
sudo sh -c 'echo 1 > /sys/class/leds/input25::scrolllock/brightness'
the problem is
-first, it only activates 1 seconds and then immediately turns off
-second, every time, the input number needs to be changed as it isn't consistent
-It do works during boot, like on the grub menu or on the ly display manager but as soon as the hyprland session -or any wayland session start, it turns off immediately
-I don't remember much but I think it worked when i used kde plasma but it was a really long time ago so i don't really remember
Thanks in advance and sorry for my english, it's not my native language, peace ✌️
Last edited by Fenouh (2026-04-01 07:50:49)
Offline
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
I was searching for an answer to the same question and eventually found one, so this is me going back through the 14 tabs I opened on the subject and sharing an answer on the higher ranking search results.
This should both enable the scroll lock LED, and toggle it when you press the Scroll Lock key.
All I needed was to add the following to hyprland.lua and hopefully someone else finds the same.
hl.config({
input = {
kb_options = "scrolllock:mod3",
}
})The equivalent in hyprland.conf would be
input {
kb_options = scrolllock:mod3
}I found the option reading the hyprland docs "Remapping Caps Lock", which directs you to /usr/share/X11/xkb/rules/base.lst to find other such kb_options
I use it to toggle "drag scroll" on my trackball from my keyboard- functionality I'm glad to have back!
Offline
Pages: 1