You are not logged in.
As always, the Ubuntu devs interfered into a big Linux project (like GNOME for example) and created a mess.
Those guys should be banned from connecting to the internet.
Offline
I don't care if the idea came from Ubuntu, xorg / freedestop or from BillG himself, but I kinda like nice fonts and graphic browsers and don't want to ditch X completely.
Offline
heh, so backspace is not good enough for xorg devs now, eh? I've created a patch for xkebord-config since I prefer to patch my packages than adding another command to startup scripts.
--- symbols/pc 2009-04-25 14:04:02.000000000 -0700
+++ symbols/pc 2009-05-30 12:30:33.000000000 -0700
@@ -19,7 +19,10 @@
include "pc(editing)"
include "keypad(x11)"
- key <BKSP> { [ BackSpace ] };
+ key <BKSP> {
+ type="CTRL+ALT",
+ symbols[Group1]= [ BackSpace, Terminate_Server ]
+ };
key <TAB> { [ Tab, ISO_Left_Tab ] };
key <RTRN> { [ Return ] };
Offline
@vries
The problem w/ patches is that they are pain in the neck to maintain.
Offline
Why don't they (the Xorg devs) want people to have this feature anymore? To protect newbies from losing data? Some other reason?
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I added the setxkbmap line to my ~/.xinitrc but my C-A-Backspace doesn't restart gdm.
$ cat ~/.xinitrc
#!/bin/sh
exec gnome-session
setxkbmap -option terminate:ctrl_alt_bksp
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Maybe you should switch the lines - execute setxkbmap first?
Offline
@karol - I tried it both ways
#!/bin/sh
exec gnome-session
setxkbmap -option terminate:ctrl_alt_bksp
and also
#!/bin/sh
setxkbmap -option terminate:ctrl_alt_bksp
exec gnome-session
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Maybe when you're using session manager everything's a bit different because it's handled by xfce4-session or gnome-session. It's just a guess and unfortunately I don't know how to enable C-A-B in your setup.
Offline
Thanks for the reply, karol.
Last edited by graysky (2009-05-30 19:03:21)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Thanks to this thread I've got C-A-Backspace working again, but I can't use Super_L in any shortcuts. I've got the following in my .stumpwmrc and now it does absolutely nothing:
(define-key *top-map* (kbd "M-S-Super_L") "exec urxvtc -e python")
(define-key *top-map* (kbd "C-Super_L") "exec urxvtc -e screen")
(define-key *top-map* (kbd "C-S-Super_L") "exec urxvtc -sh 0 -e cmatrix -C red -l -b")
(define-key *top-map* (kbd "C-M-Super_L") "exec urxvtc -e guile")
(define-key *top-map* (kbd "C-M-S-Super_L") "exec urxvtc -e clisp")
(define-key *top-map* (kbd "M-Super_L") "exec urxvtc -e emacs")
Offline
@Barrucadu
Maybe you should check new features of xkeyboard-config.
Offline
Ah, it seems Super_L has transformed into a modkey.
Offline
Hm. Interesting move... I also noticed this happenning.
I figured they already disabled Ctrl-Alt-Bksp already, so what's the point in further disabling it? Sounds like a dick move just to piss off people who like that particular shortcut
Good to hear the solution is simple... I had thought for a moment that I'd done something wrong, since I was in the middle of messing around with my setup.
Offline
This is going to be the whole mess all over again
How many times is this going to be changed upstream and to what purpose ...
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Developers can be every bit as good / bad as any people. If politicians can have "fun" making little changes that piss people off but don't really make the world a better place, why the devs can't? I think they _shouldn't_ even if they can but that's another story.
Offline
Maybe when you're using session manager everything's a bit different because it's handled by xfce4-session or gnome-session. It's just a guess and unfortunately I don't know how to enable C-A-B in your setup.
Is anyone running Gnome with this updated version of xorg AND has restored their C+A+Backspace?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I've found better way to maintain it:
if you use hotplugging add:
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
to your /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
if you aren't using hotplugging add:
Option "XkbOptions" "terminate:ctrl_alt_bksp"
to keyboard section in xorg.conf
Last edited by vries (2009-05-30 19:22:32)
Offline
I use HAL/evdev to auto configure my keyboard. For german keyboard layout I needed to copy /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to /etc/hal/fdi/policy/10-keymap.fdi and make some changes.
After adding
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
to the file Ctrl+Alt+Backsp works here.
this is my complete /etc/hal/fdi/policy/10-keymap.fdi
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.xkb.model" type="string">keyboard</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">de</merge>
<merge key="input.xkb.variant" type="string">nodeadkeys</merge>
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
</match>
</device>
</deviceinfo>
edit:
hmm, to late
Last edited by SiD (2009-05-30 19:25:06)
Offline
Hm.
I wonder if anyone's actually explored the possibility that one could change the "restart X" combo from Ctrl-Alt-Bksp to Ctrl-Alt-Bksp x 2. It would certainly stop people from hitting it accidentally.
Hell, make it a three-fer, and if you STILL manage to hit it by accident, then you're just an idiot.
Edit: As it turns out, yes, it's been discussed, but glossed over without much discussion. Too bad.
Last edited by kareeser (2009-05-31 02:00:10)
Offline
I can execute the following command to re-enable the C+A+B restarting X once I'm logged into gnome:
$ setxkbmap -option terminate:ctrl_alt_bksp
Others have recommended that I add this line to my ~/.xinitrc however doing so has no effect once I restart gdm and log in (i.e. C+A+B doesn't work). Short of adding a shell script and making it run when I log into gnome, is there a better way to have that setxkbmap line run?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
if you aren't using hotplugging add:
Option "XkbOptions" "terminate:ctrl_alt_bksp"
to keyboard section in xorg.conf
Offline
@karol - I tried that and as well. Also, I tried his other suggestion to add the line to my /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
Neither of which worked after I manually restarted gdm
In case this is my error, here is the keyboard line from my /etc/X11/xorg.conf as it appears in the file:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
Here is my modified /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.xkb.model" type="string">keyboard</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">us</merge>
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
<merge key="input.xkb.variant" type="string" />
</match>
</device>
</deviceinfo>
Last edited by graysky (2009-05-31 10:17:00)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Assume you did a hal restart after changing 10-keymap.fdi?
Offline
You can either execute that command after you've logged in by some script magic or find out what files does gnome-session sources and try to add that line somewhere. I don't know if rc.local is a good place for such a hack.
Offline