polybar/toggle-polybar.sh

19 lines
247 B
Bash
Executable File

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