Skip to content

Instantly share code, notes, and snippets.

@btran
Created November 1, 2011 01:00
Show Gist options
  • Save btran/1329559 to your computer and use it in GitHub Desktop.
Save btran/1329559 to your computer and use it in GitHub Desktop.
Set xmonad for multiple desktop environments on the same Ubuntu box
main :: IO ()
main = do
myEnvironment <- getEnv "DESKTOP_SESSION"
if myEnvironment == "xmonad-gnome"
then xmonad $ gnomeConfig
else xmonad $ xfceConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment