Re: Num Lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/9/22 07:21, c. marlow wrote:
Fedora 36

XFCE 4.16

Dell Optiplex 980


I am needing to know how do I get my numlock to automatically turn on
when X loads and the log in screen comes up?

I have Numlockx installed, but the numlock does not come on after x
loads.

I had it set in the DELL bios for numlock to be on at boot, but after X
loads, when you go to hit a number on the 10 key all you hear is an
internal beep from the computer. I have to toggle the numlock off and
back on then punch the numbers in for my password.

Have it set this way was fine for all the other DE's i've used... MATE
and Gnome... But not for XFCE for some reason.


I have never needed the cursoring functions on the 10-key so I created a file I load at boot that sets the numlock and replaces the cursor stuff with 0-9.

.kbrc

#!/bin/bash

xmodmap -e "keycode 77 = KP_Equal KP_Equal KP_Equal"
xmodmap -e "keycode 90 = KP_0 KP_0 KP_0"
xmodmap -e "keycode 87 = KP_1 KP_1 KP_1"
xmodmap -e "keycode 88 = KP_2 KP_2 KP_2"
xmodmap -e "keycode 89 = KP_3 KP_3 KP_3"
xmodmap -e "keycode 83 = KP_4 KP_4 KP_4"
xmodmap -e "keycode 84 = KP_5 KP_5 KP_5"
xmodmap -e "keycode 85 = KP_6 KP_6 KP_6"
xmodmap -e "keycode 79 = KP_7 KP_7 KP_7"
xmodmap -e "keycode 80 = KP_8 KP_8 KP_8"
xmodmap -e "keycode 81 = KP_9 KP_9 KP_9"
xmodmap -e "keycode 91 = KP_Decimal KP_Decimal KP_Decimal"

and at the end of .bashrc

#------------------------------#
# replace cursor pad w/ 10key
[ -f ~/.kbrc ] && . ~/.kbrc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux