Turning keyboard LED lights on after boot
I have to type the xset led 3 command every time after login. Is there a way to make this command run after every time I boot fedora 23?
I have to type the xset led 3 command every time after login. Is there a way to make this command run after every time I boot fedora 23?
You can add that command to the X11 startup.
Either globally for all users by creating /etc/X11/xinit/xinitrc.d/99-xset.sh
:
echo "xset led 3" > /etc/X11/xinit/xinitrc.d/99-xset.sh
chmod +x /etc/X11/xinit/xinitrc.d/99-xset.sh
Or on a per user basis, by creating the file ~/.xinputrc
, might exist already.
echo "xset led 3" >> ~/.xinputrc
chmod +x ~/.xinputrc
There is a command setleds
. Just look up man setleds
on a terminal. You can put the commands in a autostart file as suggested by @thomaswood. I'd prefer writing a bash script and adding it to your local account, e.g. by using gnome-tweak-tool or putting it in ~/.config/autostart.
Asked: 2016-03-20 07:09:46 -0600
Seen: 1,850 times
Last updated: Mar 20 '16