From 1898a2e2b49cb859463460678cd1563a46383ac8 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Wed, 5 Feb 2020 13:37:45 +0300 Subject: [PATCH] polybar: update configuration for zenbook --- etc/soft/polybar/config | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/etc/soft/polybar/config b/etc/soft/polybar/config index ac52118..aa926b5 100644 --- a/etc/soft/polybar/config +++ b/etc/soft/polybar/config @@ -32,6 +32,16 @@ yellow = #FF8C00 magenta = #B217B2 cyan = #00B0B0 +[global/wm] +margin-bottom = 0 + +[settings] +screenchange-reload = true +;compositing-background = xor +;compositing-background = screen +;compositing-foreground = source +;compositing-border = over + [bar/main] wm-name = Bar @@ -39,14 +49,13 @@ wm-restack = bspwm monitor = ${env:MONITOR:eDP1} width = 100% -height = 22 +height = 21 fixed-center = false background = ${colors.background} foreground = ${colors.foreground} line-size = 2 -;line-color = #f00 border-size = 0 border-color = ${colors.background} @@ -57,18 +66,11 @@ padding-right = 1 module-margin-left = 1 module-margin-right = 1 -;font-0 = fixed:pixelsize=10;1 -;font-0 = DejaVuSansMono Nerd Font Mono:size=9 -;font-1 = DejaVuSansMono Nerd Font Mono:size=9 -;font-2 = DejaVuSansMono Nerd Font Mono:size=9 -;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -;font-2 = siji:pixelsize=10;1 - font-0 = NotoMono Nerd Font:size=12 font-1 = NotoMono Nerd Font:size=12 font-2 = NotoMono Nerd Font:size=12 -modules-left = desktop +modules-left = desktop mpd modules-center = filesystem modules-right = bdays webcheck mail battery backlight alsa xkeyboard date @@ -107,6 +109,16 @@ label-urgent-foreground = ${colors.alert} type = custom/text content = ] +[module/mpd] +type = internal/mpd + +host = 127.0.0.1 +port = 6600 + +interval = 3 + +format-online =  + [module/bdays] type = custom/script exec = dates | grep '\*' @@ -145,8 +157,7 @@ type = internal/fs mount-0 = / mount-1 = /home mount-2 = /mnt/DATA -mount-3 = /mnt/WINDOWS -mount-4 = /mnt/FLASH +;mount-3 = /mnt/FLASH interval = 25 @@ -231,15 +242,4 @@ label =  %percentage%% ;label-margin = 1 label-underline = ${colors.cyan} -[settings] -screenchange-reload = true -;compositing-background = xor -;compositing-background = screen -;compositing-foreground = source -;compositing-border = over - -[global/wm] -margin-top = 5 -margin-bottom = 5 - ; vim:ft=dosini