On the upgrade from 11.10 to 12.04, my XMonad + Unity configuration no longer works. When I attempt to log into this session, I get "failed to load session 'xmonad'". Where can I look to figure out what's going wrong?
I am under GNOME
, and a Ubuntu 11.10 as virtual machine, which does not enable 3D accelaration.
I just downloaded xmonad
via software center.
I guess the first step is to replace the current window manager (metacity
), and then set or learn the shortcut keys.
But when I launch xmonad
in a terminal, that gives me:
/home/.../.xmonad/xmonad-x86_64-linux: executeFile: does not exist (No such file or directory)
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Serial number of failed request: 7
Current serial number in output stream: 8
Could anyone tell me how to start?
Interestingly, it turns out this is almost impossible to do. Remapping Alt key to behave as another Ctrl key is not a solution because you lose the Alt key functionalities (some of which are essential, like Alt+Tab
).
So how can I get a behavior similar to MacOS where cmd key is used for keyboard shortcuts (but also for switching between windows with cmd+Tab
)?
I know I can assign Ctrl+Tab
to switch between windows after I remap Alt key as a Ctrl key. But then I lose the real Ctrl+Tab
functionality in some applications, which are also critical like switching tabs in Chrome. Basically my Ctrl and Alt keys would become the same key and it will be impossible to have two different set of shortcuts for these two modifier keys.
A good solution for me would probably be a way to catch Alt+C, Alt+V, Alt+X, etc.
at the window management level and send instead a Ctrl+C or Ctrl+V or Ctrl+X etc.
to the focused window. On Windows this was possible via AutoHotKey. On Linux, I heard about an application called AutoKey but unlike AutoHotKey you have to use a GUI to set the shortcuts. Since I will be writing almost all combinations of Alt manually, I don't want a GUI application do to this. I should be able to configure it by writing a text file.
Is it possible to achieve this either with Gnome or Xmonad?
I just tried integrating xmonad with GNOME on Ubuntu 10.04, according to the instructions found here: http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Ubuntu_Karmic
Unfortunately, I was not successful at getting it to work. I'm wondering are there any tiling window managers that are easy to install and use inside of GNOME as a replacement for Metacity or Compiz?
Update I just got xmonad working inside of GNOME. This was a two-step process:
First, execute this line inside of GNOME:
gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string
As described here: http://haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Setting_up_Gnome_to_use_Xmonad
Second, and most critically (this was the step I was missing), add the following to ~/.xmonad/xmonad.hs:
import XMonad
import XMonad.Config.Gnome
main = xmonad gnomeConfig
As described here: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Config-Gnome.html
I've switched to XMonad as my window manager. Sometimes when I put my laptop to hibernate, it's hanging and won't shut down. I have to force it off by pressing the powerbutton for 5 seconds.
After I boot again, I can't connect to the internet. I have to logout, go to gnome, and after logging in, I rightclick the network applet icon and select the enable networking options. After that, my internet is working again.
Is there a way to do this via the command line or another option?