This script is for Slackware 12.0 and may be outdated.

SlackBuilds Repository

12.0 > System > numlockx (1.1)

This little thingy allows you to start X with NumLock turned on (which is
a feature that a lot of people seem to miss and nobody really knew how to
achieve this ).

Depending on how you start X, you might/will want to modify both
/etc/X11/xdm/Xsetup_0 and your $HOME/.xinitrc files.

Add this to the END of /etc/X11/xdm/Xsetup_0

# Turn NumLock on (using numlockx)
if [ -x /usr/bin/numlockx ]; then

Add this to the BEGINNING of $HOME/.xinitrc

# Turn NumLock on (using numlockx)
if [ -x /usr/bin/numlockx ]; then

Note that $HOME/.xinitrc is just a copy of /etc/X11/xinit/xinitrc.$SOMETHING,
where $SOMETHING is your preferred window manager. The xwmconfig(1) binary
makes this copy when it is run. To summarize, if you use xwmconfig(1) to
change your window manager/desktop environment after editing it for numlockx,
you will need to make the edits again. Alternatively, you can make the
numlockx edit to the "master" files in /etc/X11/xinit/ for each of the
installed window managers, and this will allow you to change window managers
without losing the numlockx functionality. However, be aware that an upgrade
to any of the window managers involved might/will overwrite your changes.

Maintained by: Frank Caraballo
Keywords: numlock
ChangeLog: numlockx


Source Downloads:
numlockx-1.1.tar.gz (127d9dfbbbe6dbec62cc78db340f913c)

Download SlackBuild:
numlockx.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Individual Files:

Validated for Slackware 12.0

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2021 Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds