polybar/show-polybar.sh

24 lines
283 B
Bash
Raw Normal View History

2020-04-07 22:08:17 +00:00
#!/bin/sh
_duration="$1"
killall polybar
_host=$(hostname)
case "$_host" in
Patricia)
polybar HDMI-0 &
polybar DVI-0 &
;;
Pamela)
2020-04-08 09:35:35 +00:00
polybar HDMI-1-1 &
polybar eDP-1-1 &
polybar VGA-1-1 &
2020-04-07 22:08:17 +00:00
;;
esac
if [ -n "$_duration" ]; then
2020-04-07 22:23:13 +00:00
sleep "$_duration"
2020-04-07 22:08:17 +00:00
killall polybar
fi