
Description
Please fill out the following:
i3 PR:
This concerns existing i3 functionality.
Description:
In certain cases sway renders pango markup in the binding mode indicator and the status_command output area differently from i3, unless the pango markup is surrounded by spaces.
The problem is that sway renders this incorrect: "<small><b>text</b></small>"
, and this correct: " <small><b>text</b></small> "
. Sway applies the <b>
tag but fails to apply the <small>
tag, unless the tag is surrounded by spaces. i3 does not do this, it applies both tags, regardless of them being surrounded by spaces or not.
Below I've included examples of this for the mode indicator and status command output, for both sway and i3. Note that only sway fails to apply the small tag, and only when it is not surrounded by spaces. i3 applies it in all cases, as expected.
Screenshots
Binding mode
Sway binding mode indicator, with spaces:
set $wmmode " <small><b>wm: [l]ock [r]estart e[x]it</b></small> "
mode --pango_markup $wmmode {
...
}
❌ Sway binding mode indicator, without spaces:
set $wmmode "<small><b>wm: [l]ock [r]estart e[x]it</b></small>"
mode --pango_markup $wmmode {
...
}
i3 binding mode indicator, with spaces:
set $wmmode " <small><b>wm: [l]ock [r]estart e[x]it</b></small> "
mode --pango_markup $wmmode {
...
}
i3 binding mode indicator, without spaces:
set $wmmode "<small><b>wm: [l]ock [r]estart e[x]it</b></small>"
mode --pango_markup $wmmode {
...
}
Status_command output
Sway status_command output, with spaces:
time=$(date +"%d %b %H:%M")
echo " <small><b>${time}</b></small> "
❌ Sway status_command output, without spaces:
time=$(date +"%d %b %H:%M")
echo "<small><b>${time}</b></small>"
i3 status_command output, with spaces:
time=$(date +"%d %b %H:%M")
echo " <small><b>${time}</b></small> "
i3 status_command output, without spaces:
time=$(date +"%d %b %H:%M")
echo "<small><b>${time}</b></small>"
Activity