Polybar: Touch up and re-add Tor module
This commit is contained in:
parent
c9dcb10ad8
commit
6fa63dc972
@ -89,7 +89,7 @@ border-top-size = 0
|
|||||||
|
|
||||||
modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:battery cpu memory}
|
modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:battery cpu memory}
|
||||||
modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: bspwm}
|
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]
|
[bar/primary-2]
|
||||||
monitor = ${env:PB_MONITOR:eDP-1}
|
monitor = ${env:PB_MONITOR:eDP-1}
|
||||||
@ -282,7 +282,7 @@ format-prefix = "TOR: "
|
|||||||
format-prefix-foreground = ${res/colors.mod-tor}
|
format-prefix-foreground = ${res/colors.mod-tor}
|
||||||
interval = 10
|
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
|
exec-if = ! systemctl is-active tor
|
||||||
|
|
||||||
[module/uname]
|
[module/uname]
|
||||||
|
Loading…
Reference in New Issue
Block a user