nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
227 stars 24 forks source link

How do I detect if the drawer is showing? #120

Open RRRRRm opened 1 month ago

RRRRRm commented 1 month ago

Hi there,

I'm trying to bind nwg-drawer with libinput gesture, and I'd love to be able to bind open and close in different gestures. However, I couldn't find a way to detect if the drawer is showing or not. Is there any way I can do this?

Thanks in advance!

RRRRRm commented 1 month ago

I'm using swaywm on archlinux, and I have tried swaymsg -t get_tree , but it didn't show anything about nwg-drawer.

RRRRRm commented 1 month ago

And maybe I could add two flags if you want:

-open
    open drawer of existing instance
-close
    close drawer of existing instance