From 26b9fd7e68970067458d10a72cee11e4063b6554 Mon Sep 17 00:00:00 2001 From: Martin Potier Date: Mon, 30 Mar 2020 10:20:40 +0300 Subject: [PATCH] More toplevel project helpers --- lib/Projects.hs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/Projects.hs b/lib/Projects.hs index 110c20e..a9fcf14 100644 --- a/lib/Projects.hs +++ b/lib/Projects.hs @@ -14,11 +14,14 @@ spinVimAndSt dir name = safeSpawn "st" ["-f","Iosevka Samae-18","-e","tmux","new","-A","-s",name] } -workProject = spinVimAndSt "~/relex/" +adminProject = spinVimAndSt "~/admin/" candyProject = spinVimAndSt "~/candy/" +workProject = spinVimAndSt "~/relex/" projects :: [Project] -projects = [ candyProject "adventOfCode" +projects = [ adminProject "sam-configuration-nix" + , adminProject "cdc-config" + , candyProject "adventOfCode" , candyProject "exercism" , workProject "ToyVault" , workProject "ansible-ci" @@ -51,11 +54,6 @@ projects = [ candyProject "adventOfCode" , projectStartHook = Just $ do safeSpawn "st" ["-f","Iosevka Samae-12","-e","gotop"] } - , Project { projectName = "admin" - , projectDirectory = "~/admin" - , projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."] - safeSpawn "st" ["-f","Iosevka Samae-18","-e","tmux","new","-A","-s","admin"] - } , Project { projectName = "email" , projectDirectory = "~/mail" , projectStartHook = Just $ do safeSpawnProg "st" @@ -82,7 +80,7 @@ projects = [ candyProject "adventOfCode" , projectStartHook = Just $ do safeSpawnProg "chromium" } , Project { projectName = "notes" - , projectDirectory = "~/vimwiki/" + , projectDirectory = "~/zk/" , projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|VimwikiMakeDiaryNote"] } ]