Skip to content

Add hook for after startup? #131

Answered by Stebalien
BettaGeorge asked this question in Q&A
Discussion options

You must be logged in to vote

The exwm-init-hook runs after setting everything up and right before managing existing windows. That should be late enough to start something.

If you need to wait for your entire "login flow" to complete, that's not something EXWM is going to be able to do. It doesn't know when autostarted apps are going to be done launching.

If you just want to close an app when it first opens a window, you'll have to hook into exwm-manage-finish-hook. At that point, you can look at the current buffer's exwm-class-name, exwm-title, etc. and delete the offending buffer. If you only want this to happen "on startup", you can have the hook delete the buffer then remove itself from exwm-manage-finish-hook.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@BettaGeorge
Comment options

Answer selected by BettaGeorge
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #129 on April 26, 2025 21:56.