sway
sway copied to clipboard
Status line block content positioned differently when the block is urgent
-
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!