From 138cf65205b561101cca3f0057e9a80f798f1e88 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 7 Apr 2020 23:25:22 +0100 Subject: [PATCH] add polybar toggle script --- toggle-polybar.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 toggle-polybar.sh diff --git a/toggle-polybar.sh b/toggle-polybar.sh new file mode 100755 index 0000000..10550f8 --- /dev/null +++ b/toggle-polybar.sh @@ -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