polybar/toggle-polybar.sh

16 lines
164 B
Bash
Executable File

#!/bin/sh
if killall polybar; then
exit 0
else
_host=$(hostname)
case "$_host" in
Patricia)
polybar HDMI-0 &
;;
Pamela)
polybar eDP-1-1 &
;;
esac
fi