so i use a program where you need to press f7 and you cant change it, but i only have a 67% keyboard and the layout i have selected in my keyboard setting doesnt seem to have fn on any of my keys so pls help

de:kde distro:endeavouros keyboard: custom kbd67 lite

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 hours ago

    You can make a keyboard shortcut in the settings that runs a script that simulates f7. From the top of my head

    Installydotool:

    yay -S ydotool
    sudo systemctl enable --now ydotool
    

    Create script~/f7.sh:

    #!/bin/sh
    ydotool key f7
    
    chmod +x ~/f7.sh
    

    Bind it via System Settings → Shortcuts → Custom Shortcuts → Edit → New Group → (enable it) → Edit → New → Global Shortcut → Command/URL. Set trigger to e.g.Ctrl+Shift+F, Action to/home/youruser/f7.sh.

    If Custom Shortcuts is unavailable, usexremap with:

    modmap:
      - remap:
          Ctrl-Shift-f: F7