Disable F1 key in all programs

I’m so tiered of getting help! That is pressing F1 by accident. Is there any way to disable the F1 key in all programs?

You have two options:

  • xmodmap -e "keycode 67 = NoSymbol" this should last for a session, so if you want it to run every time you log in, make a startup script for it
  • editing /usr/share/X11/xkb/symbols/pc, adding entry for FK01 that does nothing, kinda lazy to put the details and may ruin your keymapping if incorrectly done, but if you made it, it lasts forever (until you change it again)

Thanks. xmodmap seems to be doing the job.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.