Customize polybar a bit
authorAmin Bandali <amin@aminb.org>
Thu, 27 Apr 2017 21:28:55 +0000 (17:28 -0400)
committerAmin Bandali <amin@aminb.org>
Thu, 27 Apr 2017 21:28:55 +0000 (17:28 -0400)
polybar/.config/polybar/config
polybar/.local/bin/launch-polybar

index f916eb5..15799aa 100644 (file)
@@ -18,13 +18,13 @@ primary = #ffb52a
 secondary = #e60053
 alert = #bd2c40
 
-[bar/example]
+[bar/main]
 ;monitor = ${env:MONITOR:HDMI-1}
 width = 100%
 height = 27
 ;offset-x = 1%
 ;offset-y = 1%
-radius = 6.0
+radius = 3.0
 fixed-center = false
 
 background = ${colors.background}
@@ -42,33 +42,30 @@ padding-right = 2
 module-margin-left = 1
 module-margin-right = 2
 
-font-0 = fixed:pixelsize=10;1
+font-0 = Ubuntu:fontformat=truetype:antialias=true:pixelsize=9;1
 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
-font-2 = siji:pixelsize=10;1
+font-2 = Wuncon Siji:pixelsize=10;1
 
 modules-left = bspwm
-modules-center = 
-modules-right = filesystem xbacklight volume xkeyboard memory cpu battery temperature date powermenu
+modules-center = xwindow
+modules-right = volume filesystem xkeyboard memory cpu battery temperature date powermenu
 
 tray-position = right
-tray-padding = 2
+;tray-padding = 2
 ;tray-transparent = true
 ;tray-background = #0063ff
+tray-maxsize = 18
 
-;wm-restack = bspwm
-;wm-restack = i3
+wm-restack = bspwm
 
 ;override-redirect = true
 
-;scroll-up = bspwm-desknext
-;scroll-down = bspwm-deskprev
-
-;scroll-up = i3wm-wsnext
-;scroll-down = i3wm-wsprev
+scroll-up = bspwm-desknext
+scroll-down = bspwm-deskprev
 
 [module/xwindow]
 type = internal/xwindow
-label = %title:0:30:...%
+label = %title:0:50:...%
 
 [module/xkeyboard]
 type = internal/xkeyboard
@@ -182,7 +179,8 @@ bar-empty-foreground = ${colors.foreground-alt}
 [module/backlight-acpi]
 inherit = module/xbacklight
 type = internal/backlight
-card = intel_backlight
+;card = intel_backlight
+card = mba6x_backlight
 
 [module/cpu]
 type = internal/cpu
@@ -258,12 +256,12 @@ label = %date% %time%
 type = internal/volume
 
 format-volume = <label-volume> <bar-volume>
-label-volume = VOL
+label-volume = vol
 label-volume-foreground = ${root.foreground}
 
 format-muted-prefix = " "
 format-muted-foreground = ${colors.foreground-alt}
-label-muted = sound muted
+label-muted = mute
 
 bar-volume-width = 10
 bar-volume-foreground-0 = #55aa55
@@ -286,7 +284,7 @@ bar-volume-empty-foreground = ${colors.foreground-alt}
 type = internal/battery
 battery = BAT0
 adapter = ADP1
-full-at = 98
+full-at = 64
 
 format-charging = <animation-charging> <label-charging>
 format-charging-underline = #ffb52a
@@ -311,8 +309,8 @@ animation-charging-framerate = 750
 
 [module/temperature]
 type = internal/temperature
-thermal-zone = 0
-warn-temperature = 60
+thermal-zone = 1
+warn-temperature = 66
 
 format = <ramp> <label>
 format-underline = #f50a4d
@@ -364,6 +362,6 @@ screenchange-reload = true
 
 [global/wm]
 margin-top = 5
-margin-bottom = 5
+margin-bottom = 0
 
 ; vim:ft=dosini
index 49d56ca..4fcd323 100755 (executable)
@@ -7,6 +7,6 @@ killall -q polybar
 while pgrep -x polybar >/dev/null; do sleep 1; done
 
 # Launch main bar
-polybar example &
+polybar main &
 
 echo "Bars launched..."