Selection Conditional

Can I use conditional formatting that only shows specific things if text is currently selected? Like if I highlight text, then the buttons on my streamdeck appear, but if I unselect them or something, they go away. possibly using a conditional activation group or something? Thanks!