Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unity Panel + XMonad config
# /usr/share/xsessions/xmonad-unity.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad/Unity
Comment=Xmonad+Unity
Exec=gnome-session --session=xmonad_unity
Icon=xmonad.png
Type=Application
# /usr/share/applications/xmonad.desktop
# apt-get will create this one for you, but you'll have to create it yourself if installing manually
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Xmonad
Exec=xmonad
NoDisplay=true
X-GNOME-WMName=Xmonad
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
X-GNOME-Autostart-Notify=true
-- $HOME/.xmonad/xmonad.hs
import XMonad
import XMonad.Config.Gnome
import XMonad.Hooks.ManageHelpers
myManageHook = composeAll [
className =? "Unity-2d-panel" --> doIgnore,
className =? "Unity-2d-launcher" --> doFloat,
isFullscreen --> doFullFloat
]
main = xmonad $ gnomeConfig {
manageHook = myManageHook <+> manageHook gnomeConfig,
terminal = "gnome-terminal",
modMask = mod4Mask
}
# /usr/share/gnome-session/sessions/xmonad_unity.session
[GNOME Session]
Name=Xmonad+Unity
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel
DefaultProvider-windowmanager=xmonad
DefaultProvider-panel=unity-2d-panel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment