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!

  • Muehe
    link
    fedilink
    arrow-up
    3
    ·
    14 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"