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

10 lines
205 B
Bash
Executable File

#!/usr/bin/env bash
# small script to kill polybar if it is running
# if it isnt running then start it the default session
if [[ $(pidof polybar) ]]; then
pkill polybar
else
al-polybar-session
fi