Add singleApp helper
This commit is contained in:
parent
3a5d170fe9
commit
368de76deb
1 changed files with 11 additions and 5 deletions
|
@ -6,9 +6,19 @@ import XMonad
|
|||
import XMonad.Actions.DynamicProjects
|
||||
import XMonad.Util.Run
|
||||
|
||||
singleApp :: String -> Project
|
||||
singleApp app = Project
|
||||
{ projectName = app
|
||||
, projectDirectory = "/tmp"
|
||||
, projectStartHook = Just $ do spawn app
|
||||
}
|
||||
|
||||
projects :: [Project]
|
||||
projects =
|
||||
[ Project { projectName = "admin"
|
||||
[ singleApp "reaper"
|
||||
, singleApp "renoise"
|
||||
, singleApp "steam"
|
||||
, Project { projectName = "admin"
|
||||
, projectDirectory = "~/admin"
|
||||
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
||||
safeSpawnProg "mlterm"
|
||||
|
@ -30,10 +40,6 @@ projects =
|
|||
, projectDirectory = "/tmp"
|
||||
, projectStartHook = Just $ do safeSpawnProg "pavucontrol"
|
||||
}
|
||||
, Project { projectName = "steam"
|
||||
, projectDirectory = "~/"
|
||||
, projectStartHook = Just $ do spawn "steam"
|
||||
}
|
||||
, Project { projectName = "web"
|
||||
, projectDirectory = "/tmp"
|
||||
, projectStartHook = Just $ do spawn "firefox"
|
||||
|
|
Loading…
Reference in a new issue