Added 'numlockx on'

This commit is contained in:
David Thurstenson 2016-01-25 10:28:12 -06:00
parent 1cdb11df02
commit 172174ba4a
1 changed files with 8 additions and 19 deletions

View File

@ -8,33 +8,14 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps # merge in defaults and keymaps
if [ -f $sysresources ]; then if [ -f $sysresources ]; then
xrdb -merge $sysresources xrdb -merge $sysresources
fi fi
if [ -f $sysmodmap ]; then if [ -f $sysmodmap ]; then
xmodmap $sysmodmap xmodmap $sysmodmap
fi fi
if [ -f "$userresources" ]; then if [ -f "$userresources" ]; then
xrdb -merge "$userresources" xrdb -merge "$userresources"
fi fi
if [ -f "$usermodmap" ]; then if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap" xmodmap "$usermodmap"
fi fi
@ -49,6 +30,8 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
fi fi
#== Thurstylark additions below ==#
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
@ -63,6 +46,12 @@ if [[ "$HOSTNAME" == "dtarch" ]]; then
# Set the bell to be different from Matt's # Set the bell to be different from Matt's
xset b 75 750 50 xset b 75 750 50
fi fi
# If numlockx is installed, activate it
if [[ -s /usr/bin/numlockx ]]; then
numlockx on
fi
session=${1:-i3} session=${1:-i3}
case $session in case $session in