How to Keep SHIFT+BKSP From Killing XGL
by Jiang Yio on Oct.26, 2007, under Computing
Darn, this new “feature” is super-annoying. Fortunately, my most frequently-used applications can restore sessions along with what I typed… but it’s still very annoying to have X die on me when I’m working. And it happens a lot. Too much.
Here’s my solution. First, make the following script and make it executable:
#!/bin/bash
if xvinfo | grep -q Xgl ; then
xmodmap -e “keycode 22 = BackSpace BackSpace Terminate_Server”
fi
If those quotes got messed up, turn them into regular quotes, please. Now make that autostart when you login. In KDE, it’s as simple as dropping/symlinking it into the directory ~/.kde/Autostart/
If you want to fix the current session without logging out and logging back in, run the following:
xmodmap -e “keycode 22 = BackSpace BackSpace Terminate_Server”
That’s it!
(You know, while writing this post, I hit that special key combo again… it’s good that it’s not killing XGL anymore…)