
Hi! I'm not an expert, but it seems that forking a thread inside XMonad itself wouldn't work - there is no function that will allow you to convert X () back to IO (), thus you can't use the usual forkIO calls. You can probably implement something via X events and server-mode hooks: https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Hooks-Se... But may I suggest using a much simpler approach and skipping XMonad entirely? You can use for example `yad` or `zenity` to display a graphical input box directly from a script. For example something like the following: $ yad --text="Current activity:" --entry >> activity-log.txt Best regards, Platon Pronko On 2020-04-22 18:05, Alejandro Garcia wrote:
Hello In order to help with my personal productivity. I want to register what I'm doing every 15 minutes or so.
And using Xmonad.Prompt.AddFile is very easy. Currently I launch it with a key combination and I can start writing what I'm doing in this moment.
However, no I would like to automatically launch AddFile every 15 minutes... Ideally from cron (which I know) or maybe xmonad has a way to do it itself?