sargon / trayer-srg

trayer fork with multi monitor support, cleaned up codebase and other fancy stuff
Other
223 stars 34 forks source link

get current width #47

Open mklan opened 3 years ago

mklan commented 3 years ago

Is there currently a way to query trayer in order to get the current width it occupies? thank you!

sagotsky commented 3 years ago

I put together a script to ask wmctrl to get trayer's width in pixels. Does this help?

    wmctrl -l -G |
        grep "b[p]anelb" |   # trayer names its window "panel"
        awk '{print $5}'