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
|
|
|
|
2020-12-26 10:05:29 +01:00
|
|
|
term = "alacritty"
|
|
|
|
|
|
|
|
singleTermAppWithName :: String -> String -> Project
|
|
|
|
singleTermAppWithName name app = Project
|
|
|
|
{ projectName = name
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do safeSpawn term ["-e","zsh","-c",app]
|
|
|
|
}
|
|
|
|
|
|
|
|
singleAppWithName :: String -> String -> Project
|
|
|
|
singleAppWithName name app = Project
|
|
|
|
{ projectName = name
|
2020-11-07 08:04:05 +01:00
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do spawn app
|
|
|
|
}
|
|
|
|
|
2020-12-26 10:05:29 +01:00
|
|
|
singleApp :: String -> Project
|
|
|
|
singleApp app = singleAppWithName app app
|
|
|
|
|
2018-05-26 17:08:13 +02:00
|
|
|
projects :: [Project]
|
2019-09-28 14:55:07 +02:00
|
|
|
projects =
|
2020-11-07 08:04:05 +01:00
|
|
|
[ singleApp "reaper"
|
|
|
|
, singleApp "renoise"
|
|
|
|
, singleApp "steam"
|
2021-01-03 21:13:55 +01:00
|
|
|
, singleApp "carla"
|
|
|
|
, singleAppWithName "vcv" "Rack"
|
|
|
|
, singleAppWithName "element" "element-desktop"
|
|
|
|
, singleAppWithName "wire" "wire-desktop"
|
2020-12-26 10:05:29 +01:00
|
|
|
, singleTermAppWithName "email" "neomutt"
|
2020-11-07 08:04:05 +01:00
|
|
|
, Project { projectName = "admin"
|
2021-01-06 09:51:39 +01:00
|
|
|
, projectDirectory = "~/admin/nixos-config"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
|
|
|
safeSpawnProg term
|
|
|
|
}
|
|
|
|
, Project { projectName = "cdc-config"
|
|
|
|
, projectDirectory = "~/admin/cdc-config"
|
2020-03-28 16:41:16 +01:00
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
2020-12-26 10:05:29 +01:00
|
|
|
safeSpawnProg term
|
2020-03-28 16:41:16 +01:00
|
|
|
}
|
|
|
|
, Project { projectName = "notes"
|
|
|
|
, projectDirectory = "~/zk"
|
2019-09-28 14:55:07 +02:00
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
2020-12-26 10:05:29 +01:00
|
|
|
safeSpawnProg term
|
2020-12-14 20:49:03 +01:00
|
|
|
}
|
|
|
|
, Project { projectName = "advent"
|
|
|
|
, projectDirectory = "~/candy/2020-adventofcode"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
2020-12-26 10:05:29 +01:00
|
|
|
safeSpawnProg term
|
|
|
|
}
|
|
|
|
, Project { projectName = "xmonad"
|
|
|
|
, projectDirectory = "~/.xmonad"
|
|
|
|
, projectStartHook = Just $ do safeSpawn "vim" ["-g"]
|
|
|
|
safeSpawnProg term
|
2019-09-28 14:55:07 +02:00
|
|
|
}
|
2020-03-07 16:53:04 +01:00
|
|
|
, Project { projectName = "accounting"
|
|
|
|
, projectDirectory = "~/accounting"
|
2020-12-26 10:05:29 +01:00
|
|
|
, projectStartHook = Just $ do safeSpawnProg term
|
2020-03-07 16:53:04 +01:00
|
|
|
}
|
2019-09-28 14:55:07 +02:00
|
|
|
, Project { projectName = "flim"
|
|
|
|
, projectDirectory = "/flims/rtorrent/download"
|
2020-12-26 10:05:29 +01:00
|
|
|
, projectStartHook = Just $ do safeSpawnProg term
|
2019-09-28 14:55:07 +02:00
|
|
|
}
|
|
|
|
, Project { projectName = "sound"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do safeSpawnProg "pavucontrol"
|
|
|
|
}
|
|
|
|
, Project { projectName = "web"
|
|
|
|
, projectDirectory = "/tmp"
|
|
|
|
, projectStartHook = Just $ do spawn "firefox"
|
|
|
|
}
|
|
|
|
]
|
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
|
|
|
|