I don’t expect this would work on Wayland, that is Gnome and KDE among others. In general, each Display Manager and each Desktop Environment each has specific ways to setting the numlock. For the Virtual Terminals (alt-shift-F3) you use the setleds command to control this.
┌─🎩 lurcher ~
├─
└─➜ dnf list --installed numlockx 16:22 Fri 05-Dec
No matching packages to list
As I don’t have the binary installed, it won’t show me what package provided it. I’d have to use dnf provides numlockx which obviously I can do, but as that package is apparently not installed by default on KDE, I was wondering what the OP installed to get it, given that he does not list his Desktop environment.
Makes no odds to be totally honest - I have it easily adjustable in settings without the effort of having to write a systemd job just to toggle numlock on.
Don’t need it - it’s baked into KDE settings out of the box. I’m somewhat surprised that Gnome doesn’t have something just as easily adjustable out of the box too.
Saying that, I’m often surprised by Gnome design choices.
yes but it’s OFF by default (((
and setup does not even ask whether to enable it permanently…
I’m wondering why it’s always off and one has to enable it manually…
I guess in today’s world if a keyboard has the numpad - the caps lock should be on by default as the vast majority of users use it for entering numeric data, not for navigation.
Mine defaults to “Leave untouched” in KDE settings and my BIOS sets it to On.
Regardless, going into KDE settings, finding keyboard and adjusting to suit as you desire seems to be lass of a faff than installing numlockx and writing a system script to flip it.
Even if I wanted to do this, slapping it into the bash/fish/ksh/zsh/profile/whatever.rc file seems to be less fiddling than arsing around with systemd.
Each to their own though - I use a keyboard without a numlock at all, so it’s utterly moot.
The problem started by the very first IBM PC which provided a keyboard without any cursor keys. It did have a numeric pad that could also be used as cursor keys. That linux never took the numlock setting from the BIOS settings is also quite strange. If MS-WIndows can do it, it should be possible for Linux to do that as well.
Just an FYI… No idea why I typed in what I typed in earlier. But I went back and edited it. The command that I used had no “-” in it. And even though I don’t have that package installed it did show that it was available…
dnf list installed numlockx
Updating and loading repositories:
Repositories loaded.
Available packages
numlockx.x86_64 1.2-29.fc43 fedora
LOL. Apparently the word installed was doing nothing. Could have just used dnf list numlockx.
No, because the package that I was looking for was not installed at all. It was only available. It is listed under “Available packages”… Or maybe you are saying that my command meant that it should look for two separate packages, one name “installed” and one named “numlockx”. In that case you would be correct. Anyway I messed up but got useful information anyway.
Strange that it didn’t throw up an error message for my bungling.
My point is that I should have used the command dnf list --installed numlockx. But by bungling it I actually got information that the package was available.