You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
577 B
24 lines
577 B
#!/bin/bash
|
|
|
|
ENABLED=yes
|
|
[ "$ENABLED" != "yes" ] && exit 0
|
|
|
|
. /usr/lib/ublinux/os-config
|
|
|
|
SOURCE=${SYSCONF}/config; [ -f "${SOURCE}" ] && . ${SOURCE} 2>/dev/null
|
|
SOURCE=${SYSCONF}/keyboard; [ -f "${SOURCE}" ] && . ${SOURCE} 2>/dev/null
|
|
|
|
#setxkbmap $XkbLayout -model $XkbModel -option $XkbOptions
|
|
|
|
# Automatic detection PC/notebooks
|
|
if [ -z "$NUMLOCK" ] ; then
|
|
if xinput list | grep -qi touchpad ; then
|
|
NUMLOCK=no
|
|
else
|
|
NUMLOCK=yes
|
|
fi
|
|
fi
|
|
|
|
[ "$NUMLOCK" = "yes" -o "$NUMLOCK" = "on" ] && numlockx on
|
|
[ "$NUMLOCK" = "no" -o "$NUMLOCK" = "off" ] && numlockx off
|