dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.56k stars 1.24k forks source link

Unable to switch back after using xmodmap #1250

Closed dpl0 closed 9 years ago

dpl0 commented 9 years ago

Hello everyone! I'd like to thank everyone that worked on this, since crouton is awesome!

Let's get to the point. I installed jessie-x11 and added spectrwm (a tiling lightweight window manager), the main problem that this WM has is that you basically control everything from Mod4, as I understand, Mod4 is by default mapped to Super_L (Search key), and I want to have control there. Also, I want Mod4 to be on Alt_L, and have Alt on Control_L. As such, I wrote the following xmodmap configuration:

remove Mod4 = Super_L
remove Mod4 = Super_L
remove Control = Control_L
remove Mod1 = Alt_L

add Mod4 = Alt_L
add Mod1 = Control_L
add Control = Super_L

And the window manager works as expected, and GREAT. I'm the happiest with that. There's just a simple issue: I can't go back to ChromeOS...and that sucks. If I want to go back I need to get back to the default layout by using setxkbmap.

Do you guys know what's happening here? I'd love to get it to work nicely :)

DennisLfromGA commented 9 years ago

Ctrl+Alt+Shift+Left-Arrow and Ctrl+Alt+Shift+Right-Arrow should switch between Cros and your chroot, you may have to use the Control_R & Alt_R keys to do it now.

On Sat, Dec 13, 2014 at 2:24 PM, dpl notifications@github.com wrote:

Hello everyone! I'd like to thank everyone that worked on this, since crouton is awesome!

Let's get to the point. I installed jessie-x11 and added spectrwm (a tiling lightweight window manager), the main problem that this WM has is that you basically control everything from Mod4, as I understand, Mod4 is by default mapped to Super_L (Search key), and I want to have control there. Also, I want Mod4 to be on Alt_L, and have Alt on Control_L. As such, I wrote the following xmodmap configuration:

remove Mod4 = Super_L remove Mod4 = Super_L remove Control = Control_L remove Mod1 = Alt_L

add Mod4 = Alt_L add Mod1 = Control_L add Control = Super_L

And the window manager works as expected, and GREAT. I'm the happiest with that. There's just a simple issue: I can't go back to ChromeOS...and that sucks. If I want to go back I need to get back to the default layout by using setxkbmap.

Do you guys know what's happening here? I'd love to get it to work nicely :)

— Reply to this email directly or view it on GitHub https://github.com/dnschneid/crouton/issues/1250.

DennyL@GMail

dpl0 commented 9 years ago

Hello, as weird as it may seem, Ctrl+Alt+Shift+F2/Right-Arrow is not working. This is a Toshiba Chromebook 2, maybe that's related to that. I tried both with the original key settings, and the modified ones that I normally use (swapping Search and Ctrl_L). I find it curious that even with the ChromeOS layout changed, I still have to press the Ctrl key, instead of the Search key.

In my case, I have to move from ChromeOS to teminal (pressing Ctrl+Alt+F2/Right Arrow) and from there, Ctrl+Alt+F3/Refresh if I want to go to Crouton, at least this is what I've been doing.

I have just tried Ctrl+Alt+Left-Arrow in ChromeOS, and it doesn't work here. It DOES work from Crouton back to ChromeOS, by pressing Ctrl_R, and Alt_R.

Any ideas?

dnschneid commented 9 years ago

Two possibilities here.

One is that you're not fully reassigning control and alt. Look through #811 (especially the later parts) and see if you're hitting the same issues.

The other is that xbindkeys is getting confused by the new layout. Try launching it again via xbindkeys -fg /etc/crouton/xbindkeysrc.scm.