noctuid / tdrop

A Glorified WM-Independent Dropdown Creator
BSD 2-Clause "Simplified" License
1.12k stars 44 forks source link

How to launch a program hidden? #402

Closed Schweber closed 1 year ago

Schweber commented 1 year ago

I am using awesomewm and would like to load tdrop windows of my most used programs on startup hidden, so that they appear immediately when i hit their shortcut and don't have to load when invoking their shortcut for the first time in the session.

However, i didn't find an option in tdrop to load a program in the background. Standard behaviour is to show the window on launch and i would like to tell tdrop not to show the window on launch, as if i had launched the program and then run the command again to hide it e.g. as if running "tdrop kitty" twice.

Is this possible already or a feature that could be added?

noctuid commented 1 year ago

I don't think it's possible to have the window never show up (at least I don't know of a way). There will be some flicker, but you can immediately hide a program when it is started using a hook tdrop --post-create-hook "unmap" kitty.

Schweber commented 1 year ago

That works for me, thank you!