Group Vim&St projects
This commit is contained in:
parent
c0dba2d167
commit
5bf31dac93
1 changed files with 25 additions and 36 deletions
|
@ -6,27 +6,32 @@ import XMonad
|
|||
import XMonad.Actions.DynamicProjects
|
||||
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 { 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"
|
||||
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
||||
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"
|
||||
, projectDirectory = "~/mail"
|
||||
, projectStartHook = Just $ do safeSpawnProg "st"
|
||||
|
@ -44,25 +49,6 @@ projects = [ Project { projectName = "admin"
|
|||
, projectStartHook = Just $ do safeSpawn "zathura" ["weekXGraph.pdf"]
|
||||
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"
|
||||
, projectDirectory = "/tmp"
|
||||
, projectStartHook = Just $ do safeSpawnProg "pavucontrol"
|
||||
|
@ -71,9 +57,12 @@ projects = [ Project { projectName = "admin"
|
|||
, projectDirectory = "/tmp"
|
||||
, 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 conf = dynamicProjects projects conf
|
||||
{ workspaces = [] }
|
||||
|
||||
|
|
Loading…
Reference in a new issue