打印

NumLock自动启用(包括控制台和X)

NumLock自动启用(包括控制台和X)

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=42319
----------------------------------
#! /bin/sh
# /etc/init.d/ljev: set the users EV.
#setleds用于控制台启用NumLock

PATH=/bin:/usr/bin:/sbin:/usr/sbin

INITTY=/dev/tty[1-6]
for tty in $INITTY; do
        setleds -D +num < $tty
done

#case "$1" in
#  start)
#    ;;
#  stop)
#    ;;
#  *)
#    exit 1
#esac

exit 0
----------------------------------
# /etc/X11/Xsession.d/55numlockx
# In the script that called this, set -e has been set. Errors in any
# command will abort the entire script and X won't start. By putting
# this part in a subshell, any errors will abort the subshell - which
# we want, in case numlockx fails.
# The 'true' at the end ensures that the entire script will never end
# with an error code, even if there was an error.
# Ariel Shkedi <asdebian@dsgml.com>
# numlockx用于X启用NumLock

(
test -x /usr/bin/X11/numlockx && /usr/bin/X11/numlockx on
)

true
    流星雨 残月钩云危,孤星斜顶垂。 夜阑微声著,起坐人憔悴。 寂寞流星雨,谁解一瞬辉。 华灯夜空尽,落木秋风追。 彻底的 自由主义者怀疑主义者自然主义者。 http://tyf.9966.org LFS ID : 13994

TOP

建议ML把这个功能加到系统里。
    流星雨 残月钩云危,孤星斜顶垂。 夜阑微声著,起坐人憔悴。 寂寞流星雨,谁解一瞬辉。 华灯夜空尽,落木秋风追。 彻底的 自由主义者怀疑主义者自然主义者。 http://tyf.9966.org LFS ID : 13994

TOP

[quote:3a717090a4="tyfrlj"]建议ML把这个功能加到系统里。[/quote]

如果使用KDE的话,是可以使用KDE设置的。

TOP

我用的这个方法是通用的,X启动*dm还没运行NumLock就打开了,6个控制台的NumLock也全部打开了。这样不管用KDE还是FVWM、Gnome、……都可以直接使用数字小键盘了。
KDE里有这个设置吗?我不知道在哪里设置的。
    流星雨 残月钩云危,孤星斜顶垂。 夜阑微声著,起坐人憔悴。 寂寞流星雨,谁解一瞬辉。 华灯夜空尽,落木秋风追。 彻底的 自由主义者怀疑主义者自然主义者。 http://tyf.9966.org LFS ID : 13994

TOP