From 8a3ae760de214ae1ea6d2c9c9b30da8ce3d073d5 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 1 Aug 2017 02:32:02 -0500 Subject: [PATCH] Rewrote polybar config God damn that thing was ugly --- .config/polybar/config | 650 +++++++++++++++---------------------- .config/polybar/config.old | 470 +++++++++++++++++++++++++++ 2 files changed, 726 insertions(+), 394 deletions(-) create mode 100644 .config/polybar/config.old diff --git a/.config/polybar/config b/.config/polybar/config index e5163902..4819cca9 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -1,470 +1,332 @@ -;===================================================== -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;===================================================== +;INFO: https://github.com/jaagr/polybar -[colors] +;======================================== +; RESOURCES +;======================================== +[res/colors] background = ${xrdb:background:#1d2021} background-alt = ${xrdb:bg2:#504945} + foreground = ${xrdb:color15:#ebdbb2} foreground-alt = ${xrdb:color8:#928374} -primary = ${xrdb:color10:#b8bb26} -secondary = ${xrdb:color2:#98971a} -primary-alt = ${xrdb:color12:#83a598} -secondary-alt = ${xrdb:color4:#458588} -alert = ${xrdb:color9:#fb4934} -[bar/top] -;monitor = ${env:MONITOR:HDMI-1} -width = 100% -height = 24 -;offset-x = 10% -;offset-y = 1% -radius = 0.0 -fixed-center = true -bottom = false +alert-dark = ${xrdb:color3:#d79921} +alert = ${xrdb:color11:#fabd2f} -background = ${colors.background} -foreground = ${colors.foreground} +accent-red-dark = ${xrdb:color1:#cc241d} +accent-red = ${xrdb:color9:#fb4934} +accent-green-dark = ${xrdb:color2:#98971a} +accent-green = ${xrdb:color10:#b8bb26} +accent-blue-dark = ${xrdb:color4:#458588} +accent-blue = ${xrdb:color12:#83a598} -line-size = 2 -line-color = #f00 - -;border-size = 5 -border-color = #00000000 - -padding-left = 2 -padding-right = 2 - -module-margin-left = 0 -module-margin-right = 3 - -font-0 = fixed:pixelsize=10;1 -;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -;font-0 = "Overpass:size=10;1" -;font-2 = siji:pixelsize=10;1 -;font-2 = "Overpass:size=6;1" +[res/fonts] +font-0 = "DejaVu Sans:size=10;1" font-1 = "Overpass:size=10;1" font-2 = "Symbola:size=10;1" -font-3 = -modules-left = i3 separator xwindow -modules-center = date -modules-right = redshift +;======================================== +; BARS +;======================================== +; TEMPLATE +;==================== + +[template/bar] +; Rendering of the bar +width = 100% +height = 24 + +; Module padding and spacing +padding = 2 +module-margin = 2 + +; Module colors +background = ${res/colors.background} +foreground = ${res/colors.foreground} + +; Module fonts +font-0 = ${res/fonts.font-0} +font-1 = ${res/fonts.font-1} +font-2 = ${res/fonts.font-2} + +; UPPER +;==================== +[bar/top] +inherit = template/bar tray-position = right tray-padding = 2 -;tray-transparent = true -;tray-background = #0063ff -;wm-restack = bspwm -;wm-restack = i3 - -;override-redirect = true - -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev - -scroll-up = i3wm-wsnext -scroll-down = i3wm-wsprev +modules-left = i3 | xwindow +modules-center = date +modules-right = temperature | wlan | redshift +; LOWER +;==================== [bar/bottom] -;monitor = ${env:MONITOR:HDMI-1} -width = ${bar/top.width} -height = ${bar/top.height} -;offset-x = 10% -;offset-y = 1% -radius = ${bar/top.radius} -fixed-center = true -bottom = true +inherit = template/bar +bottom=true -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = ${bar/top.line-size} -line-color = ${bar/top.line-color} - -;border-size = 5 -border-color = #00000000 - -padding-left = ${bar/top.padding-left} -padding-right = ${bar/top.padding-right} - -module-margin-left = ${bar/top.module-margin-left} -module-margin-right = ${bar/top.module-margin-right} - -font-0 = ${bar/top.font-0} -;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-1 = ${bar/top.font-1} -;font-2 = siji:pixelsize=10;1 -font-2 = ${bar/top.font-2} - -modules-left = temperature eth wlan separator cpu memory +modules-left = cpu memory modules-center = mpd modules-right = xbacklight volume battery -;tray-position = right -;tray-padding = 2 -;tray-transparent = true -;tray-background = #0063ff +;======================================== +; MODULES +;======================================== -;wm-restack = bspwm -;wm-restack = i3 - -;override-redirect = true - -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev - -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev - -[module/separator] +; COSMETIC +;==================== +[module/|] type = custom/text content = "|" -content-foreground = ${colors.foreground} -content-padding = 1 - fc-list | cut -f2 -d: | sort -u +content-foreground = ${res/colors.foreground} + +; CUSTOM +;==================== [module/redshift] type = custom/script format =