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
|
|
|
|
|
|
|
projects :: [Project]
|
2019-04-17 16:14:19 +02:00
|
|
|
projects = [ Project { projectName = "admin"
|
|
|
|
, 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 = "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"
|
|
|
|
}
|
|
|
|
, 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 = "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"
|
|
|
|
}
|
|
|
|
, Project { projectName = "daily"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "nix" ["run", "nixpkgs.chromium", "-c", "chromium"]
|
2018-05-26 17:08:13 +02:00
|
|
|
}
|
2018-06-08 07:42:44 +02:00
|
|
|
, Project { projectName = "steam"
|
|
|
|
, projectDirectory = "~/"
|
|
|
|
, projectStartHook = Just $ do spawn "steam"
|
|
|
|
}
|
2018-06-09 09:44:40 +02:00
|
|
|
, Project { projectName = "web"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do spawn "firefox"
|
|
|
|
}
|
2018-06-23 17:28:05 +02:00
|
|
|
, Project { projectName = "yt"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do spawn "ytapp-launcher.sh"
|
|
|
|
}
|
2019-01-27 20:20:08 +01:00
|
|
|
, Project { projectName = "Diablo"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do spawn "/run/current-system/sw/bin/wine '/home/eeva/.wine/drive_c/Program Files/Battle.net/Battle.net Launcher.exe'"
|
|
|
|
}
|
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 = [] }
|
2018-05-26 17:08:13 +02:00
|
|
|
|