swaywm/sway

swaybar shows multiple status lines at once

Offen

#4.496 geöffnet am 25.08.2019

 (12 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C (1.255 Forks)batch import
good first issue

Repository-Metriken

Stars
 (16.909 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

  • Sway Version:

sway version 1.2-rc2 (Aug 23 2019, Arch Linux)

  • Configuration File:
bar {
    status_command tail -f ~/sway-status.txt
}

When status command initially immediately outputs multiple lines, they all are shown on the swaybar. When after that the command outputs more lines, only the last line is shown.

Swaybar should always display only the last status line.

To reproduce, create a file ~/sway-status.txt with multiple short lines of text. Set status_command to output that file:

swaymsg bar bar-0 status_command "tail -f ~/sway-status.txt"

Contributor Guide