From 01cccf3d6b58aa2cb9cd1259afc956c2c70c01d6 Mon Sep 17 00:00:00 2001 From: Salt Date: Mon, 30 Jul 2018 13:32:14 -0500 Subject: [PATCH] Polybar: Make Tor module more intricate --- .config/polybar/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/polybar/config b/.config/polybar/config index 8f064c96..2272f8e2 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -268,7 +268,7 @@ format-prefix = "Tor: " format-prefix-foreground = ${res/colors.icon-tor} interval = 10 -exec = echo Inactive +exec = if systemctl is-failed --quiet tor; then echo Failed, see logs for details; elif ! systemctl is-enabled --quiet tor; then echo Disabled; else echo Inactive; fi exec-if = ! systemctl is-active tor [module/volume]