nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
233 stars 25 forks source link

nwg-drawer send string to search from command line #108

Closed killown closed 8 months ago

killown commented 8 months ago

anyway to send a string to search from command line? would be good having a way to nwg-drawer -string-search SomeApp, then the app starts with string filled in the search already

nwg-piotr commented 8 months ago

Probably doable, but explaining the use case, please.

killown commented 8 months ago

I forked this plugin for hyprland https://github.com/killown/hyprshell and I am changing some stuff, now when there is a keypress it calls HyprlandAPI::invokeHyprctlCommand("dispatch", "exec nwg-drawer");

happens that the first key pressed won't be in the search input, so I would like to have this

HyprlandAPI::invokeHyprctlCommand("dispatch", "exec nwg-drawer -string-search {keyPressed}");

killown commented 8 months ago

forked your project in case you don´t mind, if you decide to use the search way, I will give preference for your project, thanks a lot

nwg-piotr commented 8 months ago

Everyone if free to fork. It's FOSS.

killown commented 8 months ago

thank you man https://www.youtube.com/watch?v=sNB-lQtjqTQ