polybar/show-polybar.sh

24 lines
283 B
Bash
Executable File

#!/bin/sh
_duration="$1"
killall polybar
_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
if [ -n "$_duration" ]; then
sleep "$_duration"
killall polybar
fi