Compare commits

...

2 Commits

Author SHA1 Message Date
Ray Elliott 138cf65205 add polybar toggle script 2020-04-07 23:25:22 +01:00
Ray Elliott 05c3068f20 fix sleeping for incorrect time 2020-04-07 23:23:13 +01:00
2 changed files with 16 additions and 1 deletions

View File

@ -15,6 +15,6 @@ case "$_host" in
esac esac
if [ -n "$_duration" ]; then if [ -n "$_duration" ]; then
sleep 1 sleep "$_duration"
killall polybar killall polybar
fi fi

15
toggle-polybar.sh Executable file
View File

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