I knew I had seen this option somewhere at some point in KDE’s plethora of customization options. But why is it in the keyboard advanced options??? Shouldn’t this be in the display config section? Or at least in the shortcuts section!

  • Zamundaaa
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    12 hours ago

    It’s not a shortcut configured by us, but a thing Xorg does specifically. Be grateful it doesn’t require editing Xorg configs…

    • Muehe@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      11 hours ago

      Oh it wasn’t that bad. You just had to understand rules, models, layouts, variants, and options. Oh and then of course key codes, syms, maps, states, and modifiers. Oh and then…

      Kidding aside though, in this particular case it would have been relatively simple:

      If you wanted to enable the Ctrl+Alt+Backspace sequence to kill the X server by default, you could create a configuration snippet /etc/X11/xorg.conf.d/90-zap.conf containing:

      Section "InputClass"
          Identifier "keyboard defaults"
          MatchIsKeyboard "on"
      
          Option "XKbOptions" "terminate:ctrl_alt_bksp"
      EndSection
      

      This would be equivalent to running the shell command:

      setxkbmap -option "terminate:ctrl_alt_bksp"