diff --git a/polybar/config b/polybar/config index de570b7..658881b 100644 --- a/polybar/config +++ b/polybar/config @@ -16,317 +16,210 @@ ; ;========================================================== +; ######################################################### +; ########## Colors ########## +; ######################################################### + +[colors/gruvbox-dark] +bg = #282828 +red = #cc241d +green = #98971a +yellow = #d79921 +blue = #458588 +purple = #b16286 +aqua = 689d6a +gray-light = #a89984 +gray = #928374 +red-light = #fb4934 +green-light = #b8bb26 +yellow-light = #fabd2f +blue-light = #83a598 +purple-light = #d3869b +aqua-light = #8ec07c +fg = #ebdbb2 + [colors] -background = #fbf1c7 -background-alt = #ebdbb2 -foreground = #3c3836 -foreground-alt = #3c3836 -primary = #458588 -secondary = #98971a -alert = #cc241d +background = ${colors/gruvbox-dark.bg} +foreground = ${colors/gruvbox-dark.fg} +alert = ${colors/gruvbox-dark.red} +gray = ${colors/gruvbox-dark.gray} +yellow = ${colors/gruvbox-dark.yellow} +blue = ${colors/gruvbox-dark.blue} +green = ${colors/gruvbox-dark.green} +purple = ${colors/gruvbox-dark.purple} + +; ######################################################### +; ########## Main Bar ########## +; ######################################################### [bar/main] -;monitor = ${env:MONITOR:HDMI-1} -width = 99% -height = 27 -offset-x = 0.5% -offset-y = 1% +monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 22 +offset-x = 0 +offset-y = 0 radius = 0 fixed-center = true background = ${colors.background} foreground = ${colors.foreground} -line-size = 3 -line-color = #d79921 +padding-left = 0 +padding-right = 1 -border-size = 2 -border-color = #928374 +font-0 = "Iosevka:size=12;2" +font-1 = "FontAwesome:size=10;2" +font-2 = "FontAwesome:size=30;7" -padding-left = 2 -padding-right = 2 +enable-ipc = true +override-redirect = true -module-margin-left = 1 -module-margin-right = 2 - -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=10;1 - -modules-left = bspwm i3 -modules-center = xwindow -modules-right = filesystem xbacklight pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu +modules-left = ewmh ewmh-arrow xwindow xwindow-arrow +modules-center = +modules-right = backlight-arrow backlight pulseaudio-arrow pulseaudio battery-arrow battery date-arrow date tray-arrow tray-position = right tray-padding = 2 -;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 cursor-click = pointer cursor-scroll = ns-resize +; ######################################################### +; ########## Modules ########## +; ######################################################### + +[module/xwindow-arrow] +type = custom/text +content = "%{T3}%{T-}" +content-foreground = ${colors.gray} +content-background = ${colors.background} + [module/xwindow] type = internal/xwindow -label = %title:0:30:...% +format-background = ${colors.gray} +format-foreground = ${colors.background} +format-padding = 1 +label = %title:0:60:...% -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} - -label-layout = %layout% -label-layout-underline = ${colors.secondary} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} - -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = / -mount-1 = /home - -label-mounted = %{F#458588}%mountpoint%%{F-}: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} - -[module/bspwm] -type = internal/bspwm - -label-focused = %index% -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} -label-focused-padding = 2 - -label-occupied = %index% -label-occupied-padding = 2 - -label-urgent = %index%! -label-urgent-background = ${colors.alert} -label-urgent-padding = 2 - -label-empty = %index% -label-empty-foreground = ${colors.foreground-alt} -label-empty-padding = 2 - -; Separator in between workspaces -; label-separator = | +[module/backlight-arrow] +type = custom/text +content = "%{T3}%{T-}" +content-foreground = ${colors.yellow} [module/xbacklight] type = internal/xbacklight +format-background = ${colors.yellow} +format-foreground = ${colors.background} +format-padding = 1 +format-prefix = "%{T2}  %{T-}" +format =