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

Status line block content positioned differently when the block is urgent #8364

Open
urosmikanovic opened this issue Sep 29, 2024 · 0 comments
Labels
bug Not working as intended

Comments

@urosmikanovic
Copy link

  • Sway Version:

    • sway version 1.9
  • Configuration File:

.config/sway/config

bar {
    status_command status.sh
}

.local/bin/status.sh

#!/bin/sh
printf "{\"version\":1}\n"
printf "[\n"
while :; do
    printf "["
    printf '{"full_text":"Hello, World!","urgent":true},'
    printf "],"
    sleep 1
    printf "["
    printf '{"full_text":"Hello, World!","urgent":false},'
    printf "],"
    sleep 1
done
  • Description:

Status line block contents have additional margin when the block is urgent. A block with the same content is thus wider when urgent. With the above example the block oscillates.

As far as I can tell there are some checks for block->urgent that change margins (ie. here). Not sure why this is wanted or expected. Can't setup a dev environment to check, though. Sorry!

@urosmikanovic urosmikanovic added the bug Not working as intended label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

1 participant