From 8fec187a206ed7cd07f330397ab7452b39bba517 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sat, 29 Feb 2020 21:58:32 +0100 Subject: [PATCH] Cleaned up polybar --- polybar/.config/polybar/config | 204 ++++++++++++++++----------------- polybar/.local/bin/update-arch | 4 + 2 files changed, 102 insertions(+), 106 deletions(-) create mode 100755 polybar/.local/bin/update-arch diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 6b02cd9..a3de617 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -9,7 +9,6 @@ [colors] background = ${xrdb:color0:#222} -background-alt = ${xrdb:color0:#222} foreground = ${xrdb:color7:#222} foreground-alt = ${xrdb:color7:#222} primary = ${xrdb:color1:#222} @@ -17,24 +16,9 @@ secondary = ${xrdb:color2:#222} alert = ${xrdb:color3:#222} [bar/base] -width = 100% - -height = 27 -radius = 6.0 -fixed-center = false - background = ${colors.background} foreground = ${colors.foreground} -line-size = 3 -line-color = #f00 - -border-size = 0 -border-color = #00000000 - -padding-left = 0 -padding-right = 2 - module-margin-left = 1 module-margin-right = 2 @@ -63,11 +47,10 @@ inherit = bar/base-laptop monitor = ${env:MONITOR:eDP1} modules-left = bspwm -modules-center = wlan bluetooth -modules-right = github updates-arch-combined battery xbacklight filesystem volume memory cpu temperature date +modules-center = battery0 battery1 wlan bluetooth +modules-right = github updates-arch-combined xbacklight volume memory cpu temperature filesystem date tray-position = right -tray-padding = 0 [bar/monitor1] inherit = bar/base-desktop @@ -75,10 +58,9 @@ monitor = ${env:MONITOR:DP-1} modules-left = bspwm modules-center = mpd player-mpris-tail -modules-right = github updates-arch-combined bluetooth eth filesystem volume memory cpu temperature date +modules-right = eth bluetooth github updates-arch-combined volume memory cpu temperature filesystem date tray-position = right -tray-padding = 0 [bar/monitor2] inherit = bar/base-desktop @@ -107,22 +89,20 @@ label-indicator-underline = ${colors.secondary} [module/filesystem] type = internal/fs -interval = 25 mount-0 = / mount-1 = /home -label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} +label-mounted = %mountpoint%: %percentage_used%% +label-unmounted-background = ${colors.alert} [module/bspwm] type = internal/bspwm -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} +label-focused-background = ${colors.primary} label-focused-padding = 2 +label-occupied-background = ${colors.background} label-occupied-padding = 2 label-empty = @@ -136,17 +116,33 @@ pin-workspaces = true [module/mpd] type = internal/mpd -format-online = -icon-prev =  -icon-stop =  -icon-play =  -icon-pause =  -icon-next =  +format-online = + +label-song = 𝄞 %artist% - %title% + +icon-play = ⏵ +icon-pause = ⏸ +icon-stop = ⏹ +icon-prev = ⏮ +icon-next = ⏭ +icon-seekb = ⏪ +icon-seekf = ⏩ +icon-random =  +icon-repeat = 🔁 +icon-repeatone = 🔂 +icon-single = 🔂 +icon-consume = ✀ label-song-maxlen = 25 label-song-ellipsis = true +; Only applies if is used +bar-progress-width = 45 +bar-progress-indicator = | +bar-progress-fill = ─ +bar-progress-empty = ─ + [module/xbacklight] type = internal/xbacklight @@ -171,11 +167,8 @@ card = intel_backlight [module/cpu] type = internal/cpu -interval = 2 format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 -label = %percentage:2%% +label = %percentage%% format =