The numlock zoo

Thank you. It works, the old numlockx of decades past, repackaged for systemd:

# cat /usr/bin/numlockOnTty
#!/bin/bash

for tty in /dev/tty{1..6}
do
    /usr/bin/setleds -D +num < "$tty";
done
# cat /etc/systemd/system/numlockOnTty.service
[Unit]
Description=numlock

[Service]
ExecStart=/usr/bin/numlockOnTty
StandardInput=tty
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
# systemctl list-unit-files | grep num
numlockOnTty.service                         enabled         disabled
#

It ought to be packaged, so easier to find than web searching or starting a new forum thread. :slight_smile:

1 Like