Polybar: Add simple Tor module

This commit is contained in:
Salt 2018-07-30 13:28:38 -05:00
parent 6166b759b7
commit a7438cbaf1

View File

@ -19,6 +19,7 @@ icon-date = ${res/colors.primary}
icon-dropbox = ${res/colors.primary} icon-dropbox = ${res/colors.primary}
icon-fs = ${xrdb:color11} icon-fs = ${xrdb:color11}
icon-memory = ${xrdb:color13} icon-memory = ${xrdb:color13}
icon-tor = ${xrdb:color13}
icon-volume = ${res/colors.primary} icon-volume = ${res/colors.primary}
icon-wlan = ${xrdb:color14} icon-wlan = ${xrdb:color14}
icon-wm = ${xrdb:color12} icon-wm = ${xrdb:color12}
@ -105,7 +106,7 @@ border-top-size = 0
modules-left = bspwm modules-left = bspwm
modules-center = xwindow modules-center = xwindow
modules-right = fs-home | wlan modules-right = fs-home | tor wlan
[bar/secondary] [bar/secondary]
monitor = ${env:PB_MONITOR} monitor = ${env:PB_MONITOR}
@ -261,6 +262,15 @@ bar-used-empty-foreground = ${res/colors.bar-empty}
bar-used-indicator = ${res/config.bar-indicator} bar-used-indicator = ${res/config.bar-indicator}
bar-used-indicator-foreground = ${res/colors.background-alt} bar-used-indicator-foreground = ${res/colors.background-alt}
[module/tor]
type = custom/script
format-prefix = "Tor: "
format-prefix-foreground = ${res/colors.icon-tor}
interval = 10
exec = echo Inactive
exec-if = ! systemctl is-active tor
[module/volume] [module/volume]
type = internal/volume type = internal/volume
format-volume = <bar-volume> <label-volume> format-volume = <bar-volume> <label-volume>