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]