Group Vim&St projects

This commit is contained in:
Martin Potier 2019-09-25 10:03:53 +03:00
parent c0dba2d167
commit 5bf31dac93
No known key found for this signature in database
GPG key ID: D4DD957DBA4AD89E

View file

@ -6,27 +6,32 @@ import XMonad
import XMonad.Actions.DynamicProjects import XMonad.Actions.DynamicProjects
import XMonad.Util.Run import XMonad.Util.Run
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]
}
projects :: [Project] projects :: [Project]
projects = [ Project { projectName = "admin" 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"
, projectDirectory = "~/admin" , projectDirectory = "~/admin"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"] , projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st" safeSpawnProg "st"
} }
, Project { projectName = "mordor"
, projectDirectory = "~/mordor"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st"
}
, Project { projectName = "mordor-docs"
, projectDirectory = "~/mordor-2"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st"
}
, Project { projectName = "mordor-other"
, projectDirectory = "~/mordor-3"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st"
}
, Project { projectName = "email" , Project { projectName = "email"
, projectDirectory = "~/mail" , projectDirectory = "~/mail"
, projectStartHook = Just $ do safeSpawnProg "st" , projectStartHook = Just $ do safeSpawnProg "st"
@ -44,25 +49,6 @@ projects = [ Project { projectName = "admin"
, projectStartHook = Just $ do safeSpawn "zathura" ["weekXGraph.pdf"] , projectStartHook = Just $ do safeSpawn "zathura" ["weekXGraph.pdf"]
safeSpawnProg "st" safeSpawnProg "st"
} }
, Project { projectName = "orc"
, projectDirectory = "/tmp"
, projectStartHook = Just $ do safeSpawnProg "st"
}
, Project { projectName = "mordor-ops"
, projectDirectory = "~/relex/mordor-ops"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st"
}
, Project { projectName = "mordor-deploy"
, projectDirectory = "~/relex/mordor-deploy"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st"
}
, Project { projectName = "scaleout-ops"
, projectDirectory = "~/relex/scaleout-ops"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st"
}
, Project { projectName = "sound" , Project { projectName = "sound"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do safeSpawnProg "pavucontrol" , projectStartHook = Just $ do safeSpawnProg "pavucontrol"
@ -71,9 +57,12 @@ projects = [ Project { projectName = "admin"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do safeSpawn "nix" ["run", "nixpkgs.chromium", "-c", "chromium"] , projectStartHook = Just $ do safeSpawn "nix" ["run", "nixpkgs.chromium", "-c", "chromium"]
} }
, Project { projectName = "notes"
, projectDirectory = "~/vimwiki/"
, projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|VimwikiMakeDiaryNote"]
}
] ]
modify :: XConfig l -> XConfig l modify :: XConfig l -> XConfig l
modify conf = dynamicProjects projects conf modify conf = dynamicProjects projects conf
{ workspaces = [] } { workspaces = [] }