Created
April 20, 2020 08:27
-
-
Save przmv/32edb680e859cdc540b006a478d89e67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Posix.Env (getEnv) | |
import Data.Maybe (maybe) | |
import XMonad | |
import XMonad.Config.Desktop | |
import XMonad.Config.Gnome | |
import XMonad.Config.Kde | |
import XMonad.Config.Mate | |
import XMonad.Config.Xfce | |
main = do | |
session <- getEnv "DESKTOP_SESSION" | |
xmonad $ ( maybe desktopConfig desktop session ) | |
{ modMask = mod4Mask } | |
desktop "gnome" = gnomeConfig | |
desktop "kde" = kde4Config | |
desktop "xfce" = xfceConfig | |
desktop "xmonad-mate" = mateConfig | |
desktop _ = desktopConfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment