#!/bin/bash

if ! pgrep -u $UID -x polybar >/dev/null; then
  setsid polybar top &
else
  setsid polybar-msg cmd toggle &
fi