Polybar: Touch up and re-add Tor module

This commit is contained in:
Salt 2018-10-10 13:28:53 -05:00
parent c9dcb10ad8
commit 6fa63dc972

View File

@ -89,7 +89,7 @@ border-top-size = 0
modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:battery cpu memory}
modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: bspwm}
modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:xbacklight volume date}
modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:tor xbacklight volume date}
[bar/primary-2]
monitor = ${env:PB_MONITOR:eDP-1}
@ -282,7 +282,7 @@ format-prefix = "TOR: "
format-prefix-foreground = ${res/colors.mod-tor}
interval = 10
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-failed --quiet tor; then echo FAIL; elif ! systemctl is-enabled --quiet tor; then echo DISB; else echo INAC; fi
exec-if = ! systemctl is-active tor
[module/uname]