dotfiles/dot_config/polybar/executable_toggle.sh

8 lines
125 B
Bash
Raw Normal View History

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