Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've just read Enable kill X.org with ctrl+alt+backspace and am really happy, that control-alt-backspace no longer kills my X-Server. However, I'd like to have a way to kill it; it just should be something more complicated than what I type by accident ten times a day.

Is there a way to define an own binding for the kill?

I'd like to use control-alt-meta-shift-backspace or alike and from the line

 Option          "XkbOptions" "terminate:ctrl_alt_bksp"

it's not obvious how to do it (unless it is "terminate:ctrl_alt_meta_shift_bksp" which doesn't seem to work).

share|improve this question

1 Answer 1

XkbOptions refers to a rule defined in the XKB rules file, normally /usr/share/X11/xkb/rules/base, which will look like:

terminate:ctrl_alt_bksp =   +terminate(ctrl_alt_bksp)

That in turn picks up the definition from the terminate symbols file, normally /usr/share/X11/xkb/symbols/terminate. I'm not sure if you can just add more modifiers to the type="CTRL+ALT" line there or if there's limits on the type value.

Documentation on XKB customization can be found at http://www.x.org/wiki/XKB and may be able to help fill in some of the gaps in this answer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.