Add a few projects

This commit is contained in:
EEva (JPotier) 2020-12-26 11:05:29 +02:00
parent c768c1ac7c
commit f990027814

View file

@ -6,40 +6,58 @@ import XMonad
import XMonad.Actions.DynamicProjects import XMonad.Actions.DynamicProjects
import XMonad.Util.Run import XMonad.Util.Run
singleApp :: String -> Project term = "alacritty"
singleApp app = Project
{ projectName = app singleTermAppWithName :: String -> String -> Project
singleTermAppWithName name app = Project
{ projectName = name
, projectDirectory = "/tmp"
, projectStartHook = Just $ do safeSpawn term ["-e","zsh","-c",app]
}
singleAppWithName :: String -> String -> Project
singleAppWithName name app = Project
{ projectName = name
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do spawn app , projectStartHook = Just $ do spawn app
} }
singleApp :: String -> Project
singleApp app = singleAppWithName app app
projects :: [Project] projects :: [Project]
projects = projects =
[ singleApp "reaper" [ singleApp "reaper"
, singleApp "renoise" , singleApp "renoise"
, singleApp "steam" , singleApp "steam"
, singleTermAppWithName "email" "neomutt"
, Project { projectName = "admin" , Project { projectName = "admin"
, projectDirectory = "~/admin" , projectDirectory = "~/admin"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"] , projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "alacritty" safeSpawnProg term
} }
, Project { projectName = "notes" , Project { projectName = "notes"
, projectDirectory = "~/zk" , projectDirectory = "~/zk"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"] , projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "alacritty" safeSpawnProg term
} }
, Project { projectName = "advent" , Project { projectName = "advent"
, projectDirectory = "~/candy/2020-adventofcode" , projectDirectory = "~/candy/2020-adventofcode"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"] , projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "alacritty" safeSpawnProg term
}
, Project { projectName = "xmonad"
, projectDirectory = "~/.xmonad"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg term
} }
, Project { projectName = "accounting" , Project { projectName = "accounting"
, projectDirectory = "~/accounting" , projectDirectory = "~/accounting"
, projectStartHook = Just $ do safeSpawnProg "alacritty" , projectStartHook = Just $ do safeSpawnProg term
} }
, Project { projectName = "flim" , Project { projectName = "flim"
, projectDirectory = "/flims/rtorrent/download" , projectDirectory = "/flims/rtorrent/download"
, projectStartHook = Just $ do safeSpawnProg "alacritty" , projectStartHook = Just $ do safeSpawnProg term
} }
, Project { projectName = "sound" , Project { projectName = "sound"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"