From 9c99fee9f4f996499a2c4a698a01e865219529a3 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 17 May 2020 21:41:09 -0400 Subject: [PATCH] Get polybar to something workable --- polybar/.config/polybar/config | 53 +++++++++++++++++++++------------- stumpwm/.stumpwm.d/init.lisp | 2 +- 2 files changed, 34 insertions(+), 21 deletions(-) diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index c223e31..6e63733 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -1,33 +1,24 @@ [colors] -base03 = #002b36 -base02 = #073642 -base01 = #586e75 -base00 = #657b83 -base0 = #839496 -base1 = #93a1a1 -base2 = #eee8d5 -base3 = #fdf6e3 -yellow = #b58900 -orange = #cb4b16 -red = #dc322f -magenta = #d33682 -violet = #6c71c4 -blue = #268bd2 -cyan = #2aa198 -green = #859900 +background = ${xrdb:color0:#222} +foreground = ${xrdb:color7:#222} +foreground-alt = ${xrdb:color7:#222} +primary = ${xrdb:color1:#222} +secondary = ${xrdb:color2:#222} +alert = ${xrdb:color3:#222} [bar/top] width = 100% height = 27 padding = 1 -background = ${colors.base2} -foreground = ${colors.base00} -font-0 = IBMPlexMono-Regular +background = ${colors.background} +foreground = ${colors.foreground} +font-0 = IBMPlexMono-Regular;2 +font-1 = FontAwesome:size=16;3 modules-right = battery date tray-position = right -tray-padding = 2 +tray-padding = 3 enable-ipc = true @@ -37,6 +28,28 @@ battery = BAT0 adapter = AC full-at = 98 + +format-charging = +format-discharging = +label-full =  %percentage%% + +ramp-capacity-0 =  +ramp-capacity-0-foreground = ${colors.alert} +ramp-capacity-1 =  +ramp-capacity-1-foreground = ${colors.secondary} +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  +ramp-capacity-foreground = ${colors.foreground-alt} + +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-3 =  +animation-charging-4 =  +animation-charging-foreground = ${colors.foreground-alt} +animation-charging-framerate = 750 + [module/date] type = internal/date interval = 5 diff --git a/stumpwm/.stumpwm.d/init.lisp b/stumpwm/.stumpwm.d/init.lisp index 81fd1c4..6fea332 100644 --- a/stumpwm/.stumpwm.d/init.lisp +++ b/stumpwm/.stumpwm.d/init.lisp @@ -229,4 +229,4 @@ (run-shell-command "/usr/bin/dropbox > /tmp/dropbox.log 2>&1") ;; Polybar -;; (run-shell-command "polybar top --reload >> /tmp/polybar.top.log 2>&1") +(run-shell-command "polybar top --reload >> /tmp/polybar.top.log 2>&1")