I've looked at various methods, and none have worked for me. I'm trying to run
sudo xmodmap -e 'add mod3 = Scroll_Lock'
on startup, to get the keyboard light to be bound to scroll lock. I can use that command from a terminal and it works fine, and I've added it to rc.local, and going in the terminal and saying
sudo /etc/init.d/rc.local start
works fine. But when I restart the computer again, apparently rc.local doesn't execute. How would I go about doing this?
/etc/rc.local
run asroot
..removesudo
: putxmodmap -e 'add mod3 = Scroll_Lock'
in/etc/rc.local
(beforeexit 0
) and then check.. – heemayl Aug 16 '15 at 20:43man
page forxmodmap
saysutility for modifying keymaps and pointer button mappings in X
. At boot time, when/etc/rc.local
runs, the X window system has not yet started. How can this possibly work? – waltinator Aug 16 '15 at 21:16