swaywm/sway

swaybar shows multiple status lines at once

开放

#4,496 创建于 2019年8月25日

 (12 条评论) (0 个反应) (0 位负责人)C (1,255 个派生)batch import
good first issue

仓库指标

星标
 (16,909 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南