From f8a8ced6eeacf6cc7d07bd770d465513ecb1c2ec Mon Sep 17 00:00:00 2001 From: M1dgard Date: Wed, 18 Apr 2018 05:23:49 +0200 Subject: [PATCH] Add MPD current position bar, and compact sysmon The sysmon (CPU, memory, temperature) turned out ugly, this is definitely going to change! --- polybar/config.ini | 125 ++++++++++++++++++++++++++++----------------- polybar/launch.sh | 2 +- 2 files changed, 79 insertions(+), 48 deletions(-) diff --git a/polybar/config.ini b/polybar/config.ini index 05ecaa0..a52900b 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -8,12 +8,15 @@ ;===================================================== [colors] -background = #000 -background-alt = #444 -foreground = #dfdfdf -foreground-alt = #777 -alert-fg = #ff4e4e -alert-bg = #bd2c40 +background = #000 +background-alt = #222 +background-selected = #444 +background-alert = #bd2c40 + +foreground = #dfdfdf +foreground-alt = #777 +foreground-caution = #bd2c40 +foreground-alert = #ff4e4e [bar/midbard] ;enable-ipc = true @@ -34,13 +37,20 @@ padding-right = 3 module-margin-left = 6 module-margin-right = 6 -font-0 = "Fira Sans:size=10;1" -font-1 = fixed:pixelsize=10;1 -font-2 = "Material Icons:pixelsize=14;3" -font-3 = "Fira Sans:size=12;1" -font-4 = "Fira Mono:size=10;1" -font-5 = "Weather Icons:size=10;1" -font-6 = "Material Wifi Signal strength:pixelsize=14;2" +font-0 = "Fira Sans:size=10;1" +font-1 = fixed:pixelsize=10;1 +font-2 = "Material Icons:pixelsize=14;3" +font-3 = "Fira Sans:size=12;1" +; MPD song name +font-4 = "Fira Mono:size=7;0" +font-5 = "Weather Icons:size=10;1" +font-6 = "Material Wifi Signal strength:pixelsize=14;2" +; MPD song position +font-7 = "Fira Mono:size=7;-1" +; CPU graph +font-8 = "Fira Mono:size=8;6" +; RAM and temperature +font-9 = "Fira Mono:size=7;-7" modules-left = i3 volume mpd-local mpd-online-1 mpd-online-2 modules-center = date @@ -84,14 +94,14 @@ label-unmounted-foreground = ${colors.foreground-alt} type = internal/bspwm label-focused = %index% -label-focused-background = ${colors.background-alt} +label-focused-background = ${colors.background-selected} label-focused-padding = 2 label-occupied = %index% label-occupied-padding = 2 label-urgent = %index%! -label-urgent-background = ${colors.alert-bg} +label-urgent-background = ${colors.background-alert} label-urgent-padding = 2 label-empty = %index% @@ -132,7 +142,9 @@ label-urgent-padding = ${module/bspwm.label-urgent-padding} [mpd-shared] type = internal/mpd -format-online = + +format-online = %{T8}%{T-}%{O-126}%{T5}%{T-} +small-format-online = %{T8}%{T-}%{O-51}%{T5}%{T-} icon-prev =  icon-prev-foreground = ${colors.foreground-alt} @@ -180,8 +192,10 @@ host = ${env:MPD_ONLINE_2_HOST} port = ${env:MPD_ONLINE_2_PORT} password = ${env:MPD_ONLINE_2_PASS} -label-song-maxlen = ${mpd-shared.small-label-song-maxlen} -label-song-foreground = ${colors.foreground-alt} +format-online = ${mpd-shared.small-format-online} + +label-song-maxlen = ${mpd-shared.small-label-song-maxlen} +label-song-foreground = ${colors.foreground-alt} bar-progress-width = ${mpd-shared.small-bar-progress-width} @@ -211,8 +225,8 @@ card = intel_backlight type = internal/cpu interval = 2 ;format-prefix = " " -format = %{O-80} -format-foreground = #555 +format = %{T9}%{F#222}▔%{O-1}▔%{O-1}▔%{O-1}▔%{O-1}▔%{O-1}▔%{O-1}▔%{O-43}▁%{O-1}▁%{O-1}▁%{O-1}▁%{O-1}▁%{O-1}▁%{O-1}▁%{T-}%{F}%{O-40}%{O-76} +format-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt} @@ -222,21 +236,56 @@ format-prefix-foreground = ${colors.foreground-alt} ; %percentage-core[1-9]% - load percentage for specific core label = %percentage%% -ramp-coreload-0 = ▁ -ramp-coreload-1 = ▂ -ramp-coreload-2 = ▃ -ramp-coreload-3 = ▄ -ramp-coreload-4 = ▅ -ramp-coreload-5 = ▆ -ramp-coreload-6 = ▇ -ramp-coreload-7 = █ +ramp-coreload-0 = " " +ramp-coreload-1 = ▁ +ramp-coreload-2 = ▂ +ramp-coreload-3 = ▃ +ramp-coreload-4 = ▄ +ramp-coreload-5 = ▅ +ramp-coreload-6 = ▆ +ramp-coreload-7 = ▇ +ramp-coreload-7-foreground = ${colors.foreground-caution} +ramp-coreload-8 = █ +ramp-coreload-8-foreground = ${colors.foreground-alert} +ramp-coreload-font = 9 [module/memory] type = internal/memory interval = 2 -format = "%{T5}