This repository has been archived on 2024-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
al-skel/home/bin/toggle-polybar

9 lines
120 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
if pgrep -x polybar >/dev/null; then
pkill polybar
else
launch-polybar >/dev/null 2>&1
fi