0

I used xev to find the key code for fn-f5 and came up with a little script to toggle the bluetooth on or off. My question is whether it's possible to bind fn-f5 (keycode 246) to my shell script (bttoggle) using, preferably, xmodmap.

terdon
  • 234,489
  • 66
  • 447
  • 667
MiguelHawk
  • 33
  • 4

1 Answers1

1

Not with xmodmap, which only changes keyboard mappings (what symbols should be produced by what keys). Binding a command to a key combination is task for the window manager (since that is usually the application that receives all X events) - hence it depends on what environment are you using. See Gilles answer at Mapping key combination with xmodmap.

peterph
  • 30,520
  • 2
  • 69
  • 75