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
|
|
|
|
2019-09-25 09:03:53 +02:00
|
|
|
spinVimAndSt :: String -> Project
|
|
|
|
spinVimAndSt name =
|
|
|
|
Project { projectName = name
|
|
|
|
, projectDirectory = "~/relex/" <> name
|
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."]
|
|
|
|
safeSpawn "st" ["-f","Iosevka Term-18","-e","tmux","new","-A","-s",name]
|
|
|
|
}
|
|
|
|
|
2018-05-26 17:08:13 +02:00
|
|
|
projects :: [Project]
|
2019-09-25 09:03:53 +02:00
|
|
|
projects = [ spinVimAndSt "bob-the-builder"
|
|
|
|
, spinVimAndSt "infra-inventory"
|
|
|
|
, spinVimAndSt "mega-repo-1"
|
|
|
|
, spinVimAndSt "mega-repo-2"
|
|
|
|
, spinVimAndSt "mega-repo-3"
|
|
|
|
, spinVimAndSt "mordor-ca"
|
|
|
|
, spinVimAndSt "mordor-dashboard"
|
|
|
|
, spinVimAndSt "mordor-deploy"
|
|
|
|
, spinVimAndSt "mordor-kvm"
|
|
|
|
, spinVimAndSt "mordor-ops"
|
|
|
|
, spinVimAndSt "mordorbooks"
|
|
|
|
, spinVimAndSt "nix-role"
|
|
|
|
, Project { projectName = "admin"
|
2019-04-17 16:14:19 +02:00
|
|
|
, projectDirectory = "~/admin"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
|
|
|
safeSpawnProg "st"
|
2018-05-26 17:08:13 +02:00
|
|
|
}
|
2019-04-17 16:14:19 +02:00
|
|
|
, Project { projectName = "email"
|
|
|
|
, projectDirectory = "~/mail"
|
|
|
|
, projectStartHook = Just $ do safeSpawnProg "st"
|
|
|
|
}
|
|
|
|
, Project { projectName = "frs"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do safeSpawnProg "frs"
|
|
|
|
}
|
|
|
|
, Project { projectName = "fre"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do safeSpawnProg "fre"
|
|
|
|
}
|
|
|
|
, Project { projectName = "network-graph"
|
|
|
|
, projectDirectory = "~/relex/catch-a-network-bug/csvplotter"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "zathura" ["weekXGraph.pdf"]
|
|
|
|
safeSpawnProg "st"
|
|
|
|
}
|
|
|
|
, Project { projectName = "sound"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do safeSpawnProg "pavucontrol"
|
|
|
|
}
|
|
|
|
, Project { projectName = "daily"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "nix" ["run", "nixpkgs.chromium", "-c", "chromium"]
|
2018-05-26 17:08:13 +02:00
|
|
|
}
|
2019-09-25 09:03:53 +02:00
|
|
|
, Project { projectName = "notes"
|
|
|
|
, projectDirectory = "~/vimwiki/"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|VimwikiMakeDiaryNote"]
|
|
|
|
}
|
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 = [] }
|