exwm
exwm copied to clipboard
is there any way for exwm to prevent idleness?
My research and poking around in the Emacs source code has concluded that Emacs doesn't really expose any way to prevent idle timers from firing within the ELisp runtime. as far as i can tell, timer_stop_idle is only called within read-char
. I am not sure why this is, but I think this is the biggest limitation I am finding with EXWM. as my org-roam DB scales up my idle timers get in the way of my X11 applications more and more frequently and I am motivated to solve this.
I intend to start a discussion on emacs-devel to expose a method for inhibiting idle state from the elisp runtime, and then I'd like to implement that in exwm. It would be nice if there was a way to prevent idle timers from firing when i am active in EXWM buffers, and I will save myself the embarrassment of asking if there is already a way of doing this before I post on devel
I don't think there's such a functionality in EXWM. If there's an Emacs way, it should be possible to use or add pertinent hooks on input focus change to enable or disable.
Please link the emacs-devel thread and report on your findings, as this might be something we might want to recommend in the documentation, or even integrate.
Thanks in advance.