You are not logged in.

#1 2026-04-01 07:50:02

Fenouh
Member
Registered: 2026-04-01
Posts: 1

Turning on scroll lock in hyprland

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

#2 2026-04-01 09:31:20

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,393

Re: Turning on scroll lock in hyprland


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...

Upload longer text output like this

Offline

#3 2026-06-17 00:04:25

plodah
Member
Registered: 2025-12-11
Posts: 2

Re: Turning on scroll lock in hyprland

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

Board footer

Powered by FluxBB