wmutils / contrib

Useful bits and pieces
Other
93 stars 16 forks source link

wmenu.sh: dmenu selection of windows #50

Closed lwilletts closed 5 years ago

lwilletts commented 5 years ago

Simple script using wname and dmenu to produce a window selection menu, which produces a wid that can be passed to focus.sh. A simple improvement would be to use xprop to grab WM_NAME or WM_CLASS to improve results as not all windows produce titles, but opted to keep it simple.

z3bra commented 5 years ago

The goal of this repo is to showcase wmutils tools. wname does a sufficient job here. if more is needed, perhaps wmutils is lacking a tool OR many client don't behave correctly.

Thanks for the submission

z3bra commented 5 years ago

Could you please update de README as well to include your tool?

lwilletts commented 5 years ago

Done. I think wname could be improved to call up more relevant environment variables. I use xprop for these functions right now, but the ones I most use and could be implemented into wname from xprop would be:

Otherwise I feel adding these improvements is unnecessary for wmutils to implement as its function is fulfilled by xprop anyway for those seeking more information about their windows.