Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get current width #47

Open
mklan opened this issue Dec 16, 2020 · 1 comment
Open

get current width #47

mklan opened this issue Dec 16, 2020 · 1 comment

Comments

@mklan
Copy link

mklan commented Dec 16, 2020

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

@sagotsky
Copy link

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}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants