[–] 2 points 5 days ago (1 child)

Probably sub to sway's ipc and feed that to the bar every half second or smth. This would benefit from one of those fifo/pipes thingies used in other sh bars to ensure that you don't run every command in your bar every half second

  • source
  • parent
  • context
  • [–] 1 point 6 days ago (4 children)

    Hey, looks great! I'm a Sway user too :3

    If you don't mind sharing, I'm curious about the swaybar script: how are you getting the currently focused window?

    P.S. You can add backslashes (\) at the ends of lines to do hard linebreaks (e.g. on your list of programs).

  • source
  • view more: next ›