2018-05-26 17:08:13 +02:00
|
|
|
module Projects (
|
|
|
|
Projects.modify
|
|
|
|
) where
|
|
|
|
|
|
|
|
import XMonad
|
|
|
|
import XMonad.Actions.DynamicProjects
|
2019-04-17 16:14:19 +02:00
|
|
|
import XMonad.Util.Run
|
2018-05-26 17:08:13 +02:00
|
|
|
|
|
|
|
projects :: [Project]
|
2019-09-28 14:55:07 +02:00
|
|
|
projects =
|
|
|
|
[ Project { projectName = "admin"
|
|
|
|
, projectDirectory = "~/admin"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
|
|
|
safeSpawnProg "st"
|
|
|
|
}
|
2020-03-07 16:53:04 +01:00
|
|
|
, Project { projectName = "accounting"
|
|
|
|
, projectDirectory = "~/accounting"
|
|
|
|
, projectStartHook = Just $ do safeSpawnProg "st"
|
|
|
|
}
|
2019-09-28 14:55:07 +02:00
|
|
|
, Project { projectName = "flim"
|
|
|
|
, projectDirectory = "/flims/rtorrent/download"
|
|
|
|
, projectStartHook = Just $ do safeSpawnProg "st"
|
|
|
|
}
|
|
|
|
, Project { projectName = "sound"
|
|
|
|
, 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"
|
|
|
|
}
|
|
|
|
]
|
2018-05-26 17:08:13 +02:00
|
|
|
|
|
|
|
modify :: XConfig l -> XConfig l
|
|
|
|
modify conf = dynamicProjects projects conf
|
2018-05-28 19:53:36 +02:00
|
|
|
{ workspaces = [] }
|
2018-05-26 17:08:13 +02:00
|
|
|
|