Author: Kyle Fuller <kyle@fuller.li> 2020-09-23 18:30:51 +0100 +0100
Committer: Kyle Fuller <kyle@fuller.li> 2020-09-23 18:30:51 +0100 +0100
Commit: a2241ca70e11095820e1b1f49c8d380b5ef51a1a
Parent: 9ec31c387a054126bbca6471fcf2022bd82b4d11
feat: add polybar for top menubar
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index d9e16db22f9b94d1ed5467f905b6dfd43fce1a71..010acb4f4e7030d633f30042053d1407c5c8cd4f 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -2,6 +2,7 @@ #!/usr/bin/env sh
pgrep -x sxhkd > /dev/null || sxhkd &
pgrep -x dunst > /dev/null || dunst &
+pgrep -x polybar > /dev/null || polybar top &
bspc monitor -d I II III IV V VI VII VIII IX X
diff --git a/.config/polybar/config b/.config/polybar/config
new file mode 100644
index 0000000000000000000000000000000000000000..2514acfaa56c03d32b909e0b33e7b1f8d49591ff
--- /dev/null
+++ b/.config/polybar/config
@@ -0,0 +1,60 @@
+[colors]
+background = #00282a36
+foreground = #dfdfdf
+primary = #ffb52a
+
+[bar/top]
+height = 32
+modules-left = bspwm
+modules-right = audio date
+font-0 = Source Code Pro:style=Regular
+font-1 = "Font Awesome 5 Free Solid:pixelsize=12"
+
+underline-size = 2
+underline-color = #eee
+
+spacing = 1
+padding-left = 0
+padding-right = 1
+module-margin-left = 1
+module-margin-right = 1
+
+background = ${colors.background}
+foreground = ${colors.foreground}
+
+[module/date]
+type = internal/date
+label = %date% %time%
+date = "%d/%m/%Y"
+time = %H:%M
+
+[module/bspwm]
+type = internal/bspwm
+
+format = <label-state> <label-mode>
+
+label-focused-underline = ${colors.primary}
+
+label-focused-background = #222
+label-urgent-underline = #FFA0A0
+label-empty-foreground = #888
+
+label-focused-padding = 1
+label-occupied-padding = 1
+label-urgent-padding = 1
+label-empty-padding = 1
+
+label-focused = %index%
+label-occupied = %index%
+label-empty = %index%
+label-urgent = %index%
+
+[module/audio]
+type = internal/pulseaudio
+label-muted = ""
+ramp-volume-0 = ""
+ramp-volume-1 = ""
+ramp-volume-2 = ""
+format-volume = <ramp-volume><label-volume>
+
+; vim:ft=dosini