From 090ba1c9f705d89d9929fcc343a1408a143ce3c9 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sat, 29 Jun 2019 01:32:08 +0500 Subject: [PATCH] polybar: webcheck --- etc/soft/polybar/polybar.conf | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/etc/soft/polybar/polybar.conf b/etc/soft/polybar/polybar.conf index cea2c12..e3ca0ec 100644 --- a/etc/soft/polybar/polybar.conf +++ b/etc/soft/polybar/polybar.conf @@ -34,7 +34,7 @@ yellow = #FF8C00 wm-name = Conky ; monitor = ${env:MONITOR:HDMI-1} width = 100% -height = 20 +height = 18 fixed-center = false background = ${colors.background} @@ -47,7 +47,7 @@ border-size = 0 border-color = ${colors.background} padding-left = 0 -padding-right = 2 +padding-right = 1 module-margin-left = 1 module-margin-right = 1 @@ -61,7 +61,7 @@ font-2 = DejaVuSansMono Nerd Font Mono:size=9 modules-left = desktop modules-center = filesystem -modules-right = bdays battery mail xkeyboard alsa date +modules-right = bdays webcheck battery mail xkeyboard alsa date separator = | @@ -161,6 +161,15 @@ format-muted-foreground = ${colors.foreground-alt} format-muted-underline = ${colors.foreground-alt} label-muted = %percentage%% +[module/webcheck] +type = custom/script +label = %output% +label-padding = 1 +format-underline = #0a6cf5 + +interval = 10000 +exec = "webcheck short" + [module/battery] type = internal/battery battery = BAT0