Polybar: Add simple Tor module
This commit is contained in:
parent
6166b759b7
commit
a7438cbaf1
@ -19,6 +19,7 @@ icon-date = ${res/colors.primary}
|
||||
icon-dropbox = ${res/colors.primary}
|
||||
icon-fs = ${xrdb:color11}
|
||||
icon-memory = ${xrdb:color13}
|
||||
icon-tor = ${xrdb:color13}
|
||||
icon-volume = ${res/colors.primary}
|
||||
icon-wlan = ${xrdb:color14}
|
||||
icon-wm = ${xrdb:color12}
|
||||
@ -105,7 +106,7 @@ border-top-size = 0
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = xwindow
|
||||
modules-right = fs-home | wlan
|
||||
modules-right = fs-home | tor wlan
|
||||
|
||||
[bar/secondary]
|
||||
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-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]
|
||||
type = internal/volume
|
||||
format-volume = <bar-volume> <label-volume>
|
||||
|
Loading…
Reference in New Issue
Block a user