Polybar: Make Tor module more intricate

This commit is contained in:
Salt 2018-07-30 13:32:14 -05:00
parent a7438cbaf1
commit 01cccf3d6b

View File

@ -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]