Package: numlockx
Version: 1.2-2
Severity: wishlist

We're using numlockx on LTSP, so it's installed by default for all clients.
Currently, numlockx assumes that "since the user has installed numlockx, he always 
wants numlock to be on, otherwise he can uninstall it or edit 
/etc/X11/Xsession.d/55numlockx". In LTSP, that assumption is not true. At least on 
laptops where the numeric pad overlaps with the alphanumeric keys, it would be better if 
it defaulted to off.

I propose the following changes:
 * To help people that always want numlock off (bug #648013),
   introduce /etc/default/numlockx, which would contain:

# Uncomment the following line to disable numlockx
#NUMLOCK=off


 * And, replace /etc/X11/Xsession.d/55numlockx with the following,
   so that it's off by default for laptops:

# X session startup script: /etc/X11/Xsession.d/55numlockx

if [ -x /usr/bin/numlockx ]; then
    if [ -f /etc/default/numlockx ]; then
        . /etc/default/numlockx || true
    fi
    case "$NUMLOCK" in
        on|off|toggle)
            ;;
        *)
            NUMLOCK=on
            if [ -x /usr/sbin/laptop-detect ]; then
                if /usr/sbin/laptop-detect; then
                    NUMLOCK=off
                fi
            fi
            ;;
    esac
    numlockx "$NUMLOCK" || true
fi

# EOF




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to