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-12-03 14:46:51 +01:00
|
|
|
spinVimAndSt :: String -> String -> Project
|
|
|
|
spinVimAndSt dir name =
|
2019-09-25 09:03:53 +02:00
|
|
|
Project { projectName = name
|
2019-12-03 14:46:51 +01:00
|
|
|
, projectDirectory = dir <> name
|
2019-09-25 09:03:53 +02:00
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."]
|
2019-12-03 14:46:51 +01:00
|
|
|
safeSpawn "st" ["-f","Iosevka Samae-18","-e","tmux","new","-A","-s",name]
|
2019-09-25 09:03:53 +02:00
|
|
|
}
|
|
|
|
|
2019-12-03 14:46:51 +01:00
|
|
|
workProject = spinVimAndSt "~/relex/"
|
|
|
|
candyProject = spinVimAndSt "~/candy/"
|
|
|
|
|
2018-05-26 17:08:13 +02:00
|
|
|
projects :: [Project]
|
2019-12-03 14:46:51 +01:00
|
|
|
projects = [ candyProject "adventOfCode"
|
2020-02-21 07:43:13 +01:00
|
|
|
, candyProject "exercism"
|
2019-12-03 14:46:51 +01:00
|
|
|
, workProject "ToyVault"
|
|
|
|
, workProject "ansible-ci"
|
|
|
|
, workProject "atlantis"
|
|
|
|
, workProject "bob-the-builder"
|
|
|
|
, workProject "docker-images"
|
|
|
|
, workProject "gitlab-runners"
|
2020-02-21 07:43:13 +01:00
|
|
|
, workProject "heimdall"
|
2019-12-03 14:46:51 +01:00
|
|
|
, workProject "infra-inventory"
|
|
|
|
, workProject "isengard"
|
2020-02-21 07:43:13 +01:00
|
|
|
, workProject "kube"
|
2019-12-03 14:46:51 +01:00
|
|
|
, workProject "mordor-ca"
|
|
|
|
, workProject "mordor-dashboard"
|
|
|
|
, workProject "mordor-deploy"
|
|
|
|
, workProject "mordor-kvm"
|
2019-12-31 09:20:42 +01:00
|
|
|
, workProject "mordor-nixpkgs"
|
2019-12-03 14:46:51 +01:00
|
|
|
, workProject "mordor-ops"
|
2019-12-31 09:20:42 +01:00
|
|
|
, workProject "mordor-the-repo-1"
|
|
|
|
, workProject "mordor-the-repo-2"
|
|
|
|
, workProject "mordor-the-repo-3"
|
2019-12-03 14:46:51 +01:00
|
|
|
, workProject "mordorbooks"
|
2020-02-21 07:43:13 +01:00
|
|
|
, workProject "muir"
|
2019-12-03 14:46:51 +01:00
|
|
|
, workProject "nix-role"
|
|
|
|
, workProject "nixpkgs"
|
|
|
|
, workProject "time-tracking"
|
2020-02-21 07:43:13 +01:00
|
|
|
, workProject "ugluk-ansible-role"
|
2019-12-03 14:46:51 +01:00
|
|
|
, Project { projectName = "status"
|
|
|
|
, projectDirectory = "/tmp"
|
2019-12-31 09:20:42 +01:00
|
|
|
, projectStartHook = Just $ do
|
|
|
|
safeSpawn "st" ["-f","Iosevka Samae-12","-e","sudo","speedometer.py","-r","wlan0","-t","wlan0"]
|
2019-12-03 14:46:51 +01:00
|
|
|
}
|
2019-09-25 09:03:53 +02:00
|
|
|
, Project { projectName = "admin"
|
2019-04-17 16:14:19 +02:00
|
|
|
, projectDirectory = "~/admin"
|
2019-12-03 14:46:51 +01:00
|
|
|
, 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"]
|
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"
|
2020-02-21 07:43:13 +01:00
|
|
|
, projectStartHook = Just $ do safeSpawnProg "ff-work"
|
2019-04-17 16:14:19 +02:00
|
|
|
}
|
|
|
|
, Project { projectName = "fre"
|
|
|
|
, projectDirectory = "/tmp"
|
2020-02-21 07:43:13 +01:00
|
|
|
, projectStartHook = Just $ do safeSpawnProg "ff-eeva"
|
2019-04-17 16:14:19 +02:00
|
|
|
}
|
|
|
|
, 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"
|
2019-12-03 14:46:51 +01:00
|
|
|
, projectStartHook = Just $ do safeSpawnProg "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 = [] }
|