From 8b204c6d7270976b6a3c2bfaad87822a119d2564 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Sun, 20 Dec 2020 14:39:18 -0700 Subject: Messing around with polybar --- .config/polybar/config | 276 +++++++++++++++++++++++-------------------------- 1 file changed, 132 insertions(+), 144 deletions(-) (limited to '.config/polybar/config') diff --git a/.config/polybar/config b/.config/polybar/config index 8741712..37362f2 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -1,71 +1,94 @@ +# vim:ft=dosini [colors] -;background = ${xrdb:color0:#222} -background = #222 -background-alt = #444 -;foreground = ${xrdb:color7:#222} -foreground = #dfdfdf -foreground-alt = #555 -primary = #ffb52a -secondary = #e60053 -alert = #bd2c40 +foreground = ${xrdb:foreground:#F8F8F2} +background = ${xrdb:background:#282A36} +foreground-alt = ${xrdb:selbackground:#000000} +background-alt = ${xrdb:selbackground:#F1FA8C} +black = ${xrdb:color0:#000000} +black-alt = ${xrdb:color8:#4D4D4D} +red = ${xrdb:color1:#FF5555} +red-alt = ${xrdb:color9:#FF6E67} +green = ${xrdb:color2:#50FA7B} +green-alt = ${xrdb:color10:#5AF78E} +yellow = ${xrdb:color3:#F1FA8C} +yellow-alt = ${xrdb:color11:#F4F99D} +blue = ${xrdb:color4:#BD93F9} +blue-alt = ${xrdb:color12:#CAA9FA} +purple = ${xrdb:color5:#FF79C6} +purple-alt = ${xrdb:color13:#FF92D0} +cyan = ${xrdb:color6:#8BE9FD} +cyan-alt = ${xrdb:color14:#9AEDFE} +white = ${xrdb:color7:#BFBFBF} +white-alt = ${xrdb:color15:#E6E6E6} + +[settings] +screenchange-reload = true +# compositing-background = xor +# compositing-background = screen +# compositing-foreground = source +# compositing-border = over +# pseudo-transparency = false + +[global/wm] +margin-top = 0 +margin-bottom = 0 +include-file = /home/lz/.config/polybar/bspwm.ini [bar/main] -;monitor = ${env:MONITOR:HDMI-1} +monitor = ${env:MAINMON:HDMI-0} width = 100% -height = 27 -;offset-x = 1% -;offset-y = 1% -radius = 6.0 +height = 24 +offset-x = 0% +offset-y = 0% +radius = 0.0 fixed-center = false +font-0 = Noto Sans Mono:pixelsize=10;1 +# font-0 = fixed:pixelsize=10;1 +# font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +# font-2 = siji:pixelsize=10;1 + background = ${colors.background} foreground = ${colors.foreground} -line-size = 3 -line-color = #f00 +line-size = 2 +line-color = ${colors.blue} -border-size = 4 -border-color = #00000000 +border-size = 0 +border-color = ${colors.black} padding-left = 0 -padding-right = 2 +padding-right = 0 module-margin-left = 1 module-margin-right = 2 -font-0 = Noto Sans Mono:pixelsize=10;1 -# 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 -modules-center= -modules-right= -# modules-left = bspwm i3 -# modules-center = mpd -# modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu +modules-center=xwindow +modules-right=date pulseaudio tray-position = right tray-padding = 2 -;tray-background = #0063ff +# tray-background = ${colors.cyan} -;wm-restack = bspwm -;wm-restack = i3 +override-redirect = true -;override-redirect = true +wm-restack = bspwm +# wm-restack = i3 -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev +# scroll-up = bspwm-desknext +# scroll-down = bspwm-deskprev -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev +# scroll-up = i3wm-wsnext +# scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize -# [module/xwindow] -# type = internal/xwindow -# label = %title:0:30:...% + +[module/xwindow] +type = internal/xwindow +label = %title:0:30:...% # [module/xkeyboard] # type = internal/xkeyboard @@ -73,15 +96,15 @@ cursor-scroll = ns-resize # format-prefix = " " # format-prefix-foreground = ${colors.foreground-alt} -# format-prefix-underline = ${colors.secondary} +# format-prefix-underline = ${colors.cyan} # label-layout = %layout% -# label-layout-underline = ${colors.secondary} +# label-layout-underline = ${colors.cyan} # label-indicator-padding = 2 # label-indicator-margin = 1 -# label-indicator-background = ${colors.secondary} -# label-indicator-underline = ${colors.secondary} +# label-indicator-background = ${colors.cyan} +# label-indicator-underline = ${colors.cyan} # [module/filesystem] # type = internal/fs @@ -93,64 +116,42 @@ cursor-scroll = ns-resize # 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/i3] # type = internal/i3 # format = # index-sort = true # wrapping-scroll = false -; Only show workspaces on the same output as the bar -;pin-workspaces = true +# Only show workspaces on the same output as the bar +# pin-workspaces = true # label-mode-padding = 2 # label-mode-foreground = #000 -# label-mode-background = ${colors.primary} +# label-mode-background = ${colors.blue} -; focused = Active workspace on focused monitor +# focused = Active workspace on focused monitor # label-focused = %index% # label-focused-background = ${colors.background-alt} -# label-focused-underline= ${colors.primary} +# label-focused-underline= ${colors.blue} # label-focused-padding = 2 -; unfocused = Inactive workspace on any monitor +# unfocused = Inactive workspace on any monitor # label-unfocused = %index% # label-unfocused-padding = 2 -; visible = Active workspace on unfocused monitor +# visible = Active workspace on unfocused monitor # label-visible = %index% # label-visible-background = ${self.label-focused-background} # label-visible-underline = ${self.label-focused-underline} # label-visible-padding = ${self.label-focused-padding} -; urgent = Workspace with urgency hint set +# urgent = Workspace with urgency hint set # label-urgent = %index% -# label-urgent-background = ${colors.alert} +# label-urgent-background = ${colors.red} # label-urgent-padding = 2 -; Separator in between workspaces -; label-separator = | +# Separator in between workspaces +# label-separator = | # [module/mpd] @@ -214,10 +215,10 @@ label-empty-padding = 2 # label-connected = %essid% # format-disconnected = -;format-disconnected = -;format-disconnected-underline = ${self.format-connected-underline} -;label-disconnected = %ifname% disconnected -;label-disconnected-foreground = ${colors.foreground-alt} +# format-disconnected = +# format-disconnected-underline = ${self.format-connected-underline} +# label-disconnected = %ifname% disconnected +# label-disconnected-foreground = ${colors.foreground-alt} # ramp-signal-0 =  # ramp-signal-1 =  @@ -237,53 +238,53 @@ label-empty-padding = 2 # label-connected = %local_ip% # format-disconnected = -;format-disconnected = -;format-disconnected-underline = ${self.format-connected-underline} -;label-disconnected = %ifname% disconnected -;label-disconnected-foreground = ${colors.foreground-alt} - -# [module/date] -# type = internal/date -# interval = 5 - -# date = -# date-alt = " %Y-%m-%d" - -# time = %H:%M -# time-alt = %H:%M:%S - -# format-prefix =  -# format-prefix-foreground = ${colors.foreground-alt} -# format-underline = #0a6cf5 - -# label = %date% %time% - -# [module/pulseaudio] -# type = internal/pulseaudio - -# format-volume = -# label-volume = VOL %percentage%% -# label-volume-foreground = ${root.foreground} - -# label-muted = 🔇 muted -# label-muted-foreground = #666 - -# bar-volume-width = 10 -# bar-volume-foreground-0 = #55aa55 -# bar-volume-foreground-1 = #55aa55 -# bar-volume-foreground-2 = #55aa55 -# bar-volume-foreground-3 = #55aa55 -# bar-volume-foreground-4 = #55aa55 -# bar-volume-foreground-5 = #f5a70a -# bar-volume-foreground-6 = #ff5555 -# bar-volume-gradient = false -# bar-volume-indicator = | -# bar-volume-indicator-font = 2 -# bar-volume-fill = ─ -# bar-volume-fill-font = 2 -# bar-volume-empty = ─ -# bar-volume-empty-font = 2 -# bar-volume-empty-foreground = ${colors.foreground-alt} +# format-disconnected = +# format-disconnected-underline = ${self.format-connected-underline} +# label-disconnected = %ifname% disconnected +# label-disconnected-foreground = ${colors.foreground-alt} + +[module/date] +type = internal/date +interval = 5 + +date = +date-alt = " %Y-%m-%d" + +time = %H:%M +time-alt = %H:%M:%S + +format-prefix =  +format-prefix-foreground = ${colors.foreground-alt} +format-underline = #0a6cf5 + +label = %date% %time% + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume = +label-volume = VOL %percentage%% +label-volume-foreground = ${root.foreground} + +label-muted = 🔇 muted +label-muted-foreground = #666 + +bar-volume-width = 10 +bar-volume-foreground-0 = #55aa55 +bar-volume-foreground-1 = #55aa55 +bar-volume-foreground-2 = #55aa55 +bar-volume-foreground-3 = #55aa55 +bar-volume-foreground-4 = #55aa55 +bar-volume-foreground-5 = #f5a70a +bar-volume-foreground-6 = #ff5555 +bar-volume-gradient = false +bar-volume-indicator = | +bar-volume-indicator-font = 2 +bar-volume-fill = ─ +bar-volume-fill-font = 2 +bar-volume-empty = ─ +bar-volume-empty-font = 2 +bar-volume-empty-foreground = ${colors.foreground-alt} # [module/alsa] # type = internal/alsa @@ -358,7 +359,7 @@ label-empty-padding = 2 # label = %temperature-c% # label-warn = %temperature-c% -# label-warn-foreground = ${colors.secondary} +# label-warn-foreground = ${colors.cyan} # ramp-0 =  # ramp-1 =  @@ -373,9 +374,9 @@ label-empty-padding = 2 # format-spacing = 1 # label-open =  -# label-open-foreground = ${colors.secondary} +# label-open-foreground = ${colors.cyan} # label-close =  cancel -# label-close-foreground = ${colors.secondary} +# label-close-foreground = ${colors.cyan} # label-separator = | # label-separator-foreground = ${colors.foreground-alt} @@ -394,16 +395,3 @@ label-empty-padding = 2 # menu-2-1 = cancel # menu-2-1-exec = menu-open-0 -[settings] -screenchange-reload = true -;compositing-background = xor -;compositing-background = screen -;compositing-foreground = source -;compositing-border = over -;pseudo-transparency = false - -[global/wm] -margin-top = 5 -margin-bottom = 5 - -; vim:ft=dosini -- cgit v1.2.3-70-g09d2