swaywm/sway

swaybar shows multiple status lines at once

Aberta

#4.496 aberto em 25 de ago. de 2019

 (12 comentários) (0 reação) (0 responsável)C (1.255 forks)batch import
good first issue

Métricas do repositório

Stars
 (16.909 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

  • 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"

Guia do colaborador