-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow building termonad instances as standalone project via build script #127
Comments
I'm going to go ahead and implement this for my own use, posting here to see if there's support for using this approach |
@pkinsky Thanks! I've actually used the buildscript functionality from XMonad, so I think this would be a nice addition to Termonad. However, ideally that functionality would be provided in some sort of external library (similar to how Termonad is currently using the Maybe this functionality could be added to (Some name suggestions: I'd say the steps for this are as following:
How does this sound? |
my initial thought is that users of this functionality would have to accept losing the dyre auto-reload functionality (monitoring some directory referenced in the buildscript for changes and determining which changes require a reload seems like a hard problem). I was thinking that (at least for myself) I'd be willing to accept manually restarting termonad instances after updating the underlying project, but I'm not sure if that's viable given how people use termonad. |
I thought the way that XMonad works is that is always ran the buildscript everytime it started up, and it re-execed itself if the buildscript created a new xmonad binary? I was thinking that the buildscript functionality in Termonad could work the same? Were you thinking it could be more advanced than that? |
I had thought |
Let me try to explain a little bit more about what is happening. When you start Termonad, you normally call the If you do have If the timestamp for (Actually, almost all of the above logic is actually implemented in the
So let me try to explain this.
|
re:
I would like to implement XMonad's solution to this problem (a build script stored in the config directory that can be configured to, eg, build a stack project then copy over the executable)
See usage of the
buildscript
variable in this file for details: https://github.com/xmonad/xmonad/blob/master/src/XMonad/Core.hs#L644-L645The text was updated successfully, but these errors were encountered: