Polybar: Add network status module

This commit is contained in:
2018-08-20 12:54:58 -05:00
parent 0b07828588
commit 0c800a24d5
2 changed files with 69 additions and 1 deletions

View File

@@ -88,7 +88,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:amidown xbacklight volume date}
[bar/primary-2]
monitor = ${env:PB_MONITOR:eDP-1}
@@ -144,6 +144,14 @@ content = " "
# OTHER
#====================
[module/amidown]
type = custom/script
format-prefix = "NET: "
format-prefix-foreground = ${res/colors.alert}
exec = ~/.config/polybar/amidown.sh
exec-if = ! ping -c 1 google.com
interval = 15
[module/battery]
type = internal/battery
format-charging = <label-charging>