Rewrote polybar config

God damn that thing was ugly
This commit is contained in:
Salt 2017-08-01 02:32:02 -05:00
parent 6f0abd1b31
commit 8a3ae760de
2 changed files with 726 additions and 394 deletions

View File

@ -1,470 +1,332 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
;INFO: https://github.com/jaagr/polybar
[colors]
;========================================
; RESOURCES
;========================================
[res/colors]
background = ${xrdb:background:#1d2021}
background-alt = ${xrdb:bg2:#504945}
foreground = ${xrdb:color15:#ebdbb2}
foreground-alt = ${xrdb:color8:#928374}
primary = ${xrdb:color10:#b8bb26}
secondary = ${xrdb:color2:#98971a}
primary-alt = ${xrdb:color12:#83a598}
secondary-alt = ${xrdb:color4:#458588}
alert = ${xrdb:color9:#fb4934}
[bar/top]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 24
;offset-x = 10%
;offset-y = 1%
radius = 0.0
fixed-center = true
bottom = false
alert-dark = ${xrdb:color3:#d79921}
alert = ${xrdb:color11:#fabd2f}
background = ${colors.background}
foreground = ${colors.foreground}
accent-red-dark = ${xrdb:color1:#cc241d}
accent-red = ${xrdb:color9:#fb4934}
accent-green-dark = ${xrdb:color2:#98971a}
accent-green = ${xrdb:color10:#b8bb26}
accent-blue-dark = ${xrdb:color4:#458588}
accent-blue = ${xrdb:color12:#83a598}
line-size = 2
line-color = #f00
;border-size = 5
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 0
module-margin-right = 3
font-0 = fixed:pixelsize=10;1
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-0 = "Overpass:size=10;1"
;font-2 = siji:pixelsize=10;1
;font-2 = "Overpass:size=6;1"
[res/fonts]
font-0 = "DejaVu Sans:size=10;1"
font-1 = "Overpass:size=10;1"
font-2 = "Symbola:size=10;1"
font-3 =
modules-left = i3 separator xwindow
modules-center = date
modules-right = redshift
;========================================
; BARS
;========================================
; TEMPLATE
;====================
[template/bar]
; Rendering of the bar
width = 100%
height = 24
; Module padding and spacing
padding = 2
module-margin = 2
; Module colors
background = ${res/colors.background}
foreground = ${res/colors.foreground}
; Module fonts
font-0 = ${res/fonts.font-0}
font-1 = ${res/fonts.font-1}
font-2 = ${res/fonts.font-2}
; UPPER
;====================
[bar/top]
inherit = template/bar
tray-position = right
tray-padding = 2
;tray-transparent = true
;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
modules-left = i3 | xwindow
modules-center = date
modules-right = temperature | wlan | redshift
; LOWER
;====================
[bar/bottom]
;monitor = ${env:MONITOR:HDMI-1}
width = ${bar/top.width}
height = ${bar/top.height}
;offset-x = 10%
;offset-y = 1%
radius = ${bar/top.radius}
fixed-center = true
inherit = template/bar
bottom=true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = ${bar/top.line-size}
line-color = ${bar/top.line-color}
;border-size = 5
border-color = #00000000
padding-left = ${bar/top.padding-left}
padding-right = ${bar/top.padding-right}
module-margin-left = ${bar/top.module-margin-left}
module-margin-right = ${bar/top.module-margin-right}
font-0 = ${bar/top.font-0}
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = ${bar/top.font-1}
;font-2 = siji:pixelsize=10;1
font-2 = ${bar/top.font-2}
modules-left = temperature eth wlan separator cpu memory
modules-left = cpu memory
modules-center = mpd
modules-right = xbacklight volume battery
;tray-position = right
;tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;========================================
; MODULES
;========================================
;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
[module/separator]
; COSMETIC
;====================
[module/|]
type = custom/text
content = "|"
content-foreground = ${colors.foreground}
content-padding = 1
fc-list | cut -f2 -d: | sort -u
content-foreground = ${res/colors.foreground}
; CUSTOM
;====================
[module/redshift]
type = custom/script
format = <label>
label = %output%
label-foreground = ${xrdb:color9:#fb4934}
label-foreground = ${res/colors.accent-red}
interval = 5
exec = ~/.config/polybar/redshift.sh
[module/xwindow]
type = internal/xwindow
label = %title:0:75:...%
; TEMPLATE
;====================
[template/module/bar]
format = <label> <bar>
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label = "<TEMPLATE>"
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
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 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
type = internal/bspwm
label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %name%
label-occupied-padding = 2
label-urgent = %name%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %name%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
bar-width = 30
bar-fill = /
bar-fill-foreground = ${res/colors.accent-blue}
bar-fill-background = ${res/colors.background}
bar-indicator = /
bar-indicator-foreground = ${res/colors.foreground}
bar-indicator-background = ${res/colors.background}
bar-empty = /
bar-empty-foreground = ${res/colors.background-alt}
bar-empty-background = ${res/colors.background}
; STOCK
;====================
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = true
; Strip the numbers from workspaces, when applicable
;strip-wsnumbers = true
label-mode-padding = 2
label-mode-foreground = ${colors.background}
label-mode-background = ${colors.primary}
label-mode-foreground = ${res/colors.background}
label-mode-background = ${res/colors.accent-green}
; focused = Active workspace on focused monitor
; Active workspace on focused monitor
label-focused = %name%
label-focused-foreground = ${colors.background}
label-focused-background = ${colors.primary}
label-focused-padding = 2
label-focused-foreground = ${res/colors.background}
label-focused-background = ${res/colors.accent-green}
; unfocused = Inactive workspace on any monitor
label-unfocused = %name%
label-unfocused-padding = ${self.label-focused-padding}
; visible = Active workspace on unfocused monitor
label-visible = %name%
label-visible-background = ${self.label-focused-background}
; Active workspace on unfocused monitor
label-visible = ${self.label-focused}
label-visible-padding = ${self.label-focused-padding}
label-visible-foreground = ${self.label-focused-foreground}
label-visible-background = ${res/colors.accent-green-dark}
; urgent = Workspace with urgency hint set
label-urgent = %name%
label-urgent-foreground = ${colors.background}
label-urgent-background = ${colors.alert}
label-urgent-padding = ${self.label-focused-padding}
; Inactive workspace
label-unfocused = ${self.label-focused}
label-unfocused-padding = ${self.label-focused-padding}
label-unfocused-foreground = ${res/colors.foreground}
label-unfocused-background = ${res/colors.background}
[module/mpd]
type = internal/mpd
format-online = <label-song> <bar-progress> <label-time>
format-offline = <label-offline>
icon-prev = <<
icon-prev-foreground = ${colors.foreground}
icon-stop = ▪
icon-play = ▶
icon-pause = ▮▮
icon-pause-font = 3
icon-random =
icon-repeat = ⟳
icon-repeat-once = ⟳1
icon-next = >>
icon-next-foreground = ${colors.foreground}
label-song = %title%
label-song-foreground = ${colors.foreground}
label-song-maxlen = 25
label-song-ellipsis = true
label-offline = "/// MPD ///"
label-offline-foreground = ${colors.background-alt}
label-time = %elapsed%/%total%
label-time-foreground = ${colors.foreground}
bar-progress-width = 100
bar-progress-indicator = ${module/bartemplate.bar-indicator}
bar-progress-fill = ${module/bartemplate.bar-fill}
bar-progress-fill-foreground = ${xrdb:color9:#fb4934}
bar-progress-empty = ${module/bartemplate.bar-empty}
bar-progress-empty-foreground = ${module/bartemplate.bar-empty-foreground}
interval = 1
[module/bartemplate]
format = <label> <bar>
label = "<TEMPLATE>"
label-foreground = ${colors.foreground}
bar-width = 30
bar-fill = /
bar-fill-font = 1
bar-indicator =
bar-indicator-foreground = ${colors.foreground}
bar-indicator-font = ${self.bar-fill-font}
bar-fill-foreground = ${colors.foreground}
bar-empty = ${self.bar-fill}
bar-empty-font = ${self.bar-fill-font}
bar-empty-foreground = ${colors.background-alt}
[module/xbacklight]
type = internal/xbacklight
inherit = module/bartemplate
label = BRI
bar-fill-foreground = ${colors.primary-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
format = <label> <bar-load>
label = "CPU"
label-foreground = ${module/bartemplate.label-foreground}
bar-load-width = ${module/bartemplate.bar-width}
bar-load-fill = ${module/bartemplate.bar-fill}
bar-load-fill-font = ${module/bartemplate.bar-fill-font}
bar-load-fill-foreground = ${xrdb:color9:#fb4934}
bar-load-indicator =
bar-load-empty = ${self.bar-load-fill}
bar-load-empty-font = ${self.bar-load-fill-font}
bar-load-empty-foreground = ${colors.background-alt}
interval = 1
[module/memory]
type = internal/memory
format = <label> <bar-used>
label = "MEM"
label-foreground = ${module/bartemplate.label-foreground}
bar-used-width = ${module/bartemplate.bar-width}
bar-used-fill = ${module/bartemplate.bar-fill}
bar-used-fill-font = ${module/bartemplate.bar-fill-font}
bar-used-fill-foreground = ${xrdb:color9:#fb4934}
bar-used-indicator =
bar-used-empty = ${self.bar-used-fill}
bar-used-empty-font = ${self.bar-used-fill-font}
bar-used-empty-foreground = ${colors.background-alt}
interval = 1
[module/wlan]
type = internal/network
interface = wlp1s0
interval = 3.0
format-connected = <label-connected>
format-connected-foreground = ${colors.primary}
label-connected = "✓ %essid%"
format-disconnected = <label-disconnected>
label-disconnected = "✗ %ifname%"
label-disconnected-foreground = ${xrdb:color9:#fb4934}
ramp-signal-0 = ▁
ramp-signal-1 = ▂
ramp-signal-2 = ▃
ramp-signal-3 = ▄
ramp-signal-4 = ▅
ramp-signal-5 = ▆
ramp-signal-6 = ▇
ramp-signal-7 = █
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp0s31f6
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
label-connected-foreground = ${colors.primary}
format-disconnected =
;format-disconnected = <label-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 = %a
date-alt = %A, %B %d
time = %I:%M %p
time-alt = %I:%M %p
label = %date% %time%
label-foreground = ${colors.foreground}
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${colors.foreground}
format-muted = <label-muted> <bar-volume>
label-muted = VOL
label-muted-foreground = ${colors.foreground-alt}
bar-volume-width = ${module/bartemplate.bar-width}
bar-volume-foreground = ${colors.primary-alt}
;${xrdb:color14:#8ec07c}
bar-volume-indicator =
bar-volume-fill = ${module/bartemplate.bar-fill}
bar-volume-fill-font = ${module/bartemplate.bar-fill-font}
bar-volume-fill-foreground = ${colors.primary-alt}
;${xrdb:color14:#8ec07c}
bar-volume-empty = ${module/bartemplate.bar-empty}
bar-volume-empty-font = ${module/bartemplate.bar-empty-font}
bar-volume-empty-foreground = ${module/bartemplate.bar-empty-foreground}
; Urgent workspace
label-urgent = ${self.label-focused}
label-urgent-foreground = ${res/colors.background}
label-urgent-background = ${res/colors.alert}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 95
format-charging = <label-charging> <bar-capacity>
label-charging = CHR
label-charging-foreground = ${self.bar-capacity-fill-foreground}
format-discharging = <label-discharging> <bar-capacity>
label-discharging = BAT
label-discharging-foreground = ${colors.foreground}
format-full = <label-full> <bar-capacity>
label-full = BAT
label-full-foreground = ${self.bar-capacity-fill-foreground}
bar-capacity-width = ${module/bartemplate.bar-width}
bar-capacity-foreground = ${colors.primary}
bar-capacity-indicator =
bar-capacity-fill = ${module/bartemplate.bar-fill}
bar-capacity-fill-font = ${module/bartemplate.bar-fill-font}
bar-capacity-fill-foreground = ${colors.primary}
bar-capacity-empty = ${module/bartemplate.bar-empty}
bar-capacity-empty-font = ${module/bartemplate.bar-empty-font}
bar-capacity-empty-foreground = ${module/bartemplate.bar-empty-foreground}
label-charging = "CHR"
label-charging-foreground = ${template/module/bar.label-foreground}
label-charging-background = ${template/module/bar.label-background}
label-discharging = "BAT"
label-discharging-foreground = ${template/module/bar.label-foreground
label-discharging-background = ${template/module/bar.label-background}
label-full = "CHR"
label-full-foreground = ${self.bar-capacity-fill-foreground}
label-full-background = ${template/module/bar.label-background}
bar-capacity-width = ${template/module/bar.bar-width}
bar-capacity-fill = ${template/module/bar.bar-fill}
bar-capacity-fill-foreground = ${res/colors.accent-green}
bar-capacity-fill-background = ${template/module/bar.bar-fill-background}
bar-capacity-indicator = ${template/module/bar.bar-indicator}
bar-capacity-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
bar-capacity-indicator-background = ${template/module/bar.bar-indicator-background}
bar-capacity-empty = ${template/module/bar.bar-empty}
bar-capacity-empty-foreground = ${template/module/bar.bar-empty-foreground}
bar-capacity-empty-background = ${template/module/bar.bar-empty-background}
interval = 60
[module/cpu]
type = internal/cpu
format = <label> <bar-load>
label = "CPU"
label-foreground = ${template/module/bar.label-foreground}
label-background = ${template/module/bar.label-background}
bar-load-width = ${template/module/bar.bar-width}
bar-load-fill = ${template/module/bar.bar-fill}
bar-load-fill-foreground = ${res/colors.accent-red}
bar-load-fill-background = ${template/module/bar.bar-fill-background}
bar-load-indicator = ${template/module/bar.bar-indicator}
bar-load-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
bar-load-indicator-background = ${template/module/bar.bar-indicator-background}
bar-load-empty = ${template/module/bar.bar-empty}
bar-load-empty-foreground = ${template/module/bar.bar-empty-foreground}
bar-load-empty-background = ${template/module/bar.bar-empty-background}
interval = 1
[module/date]
type = internal/date
date = %a
time = %I:%M %p
date-alt = %A, %B %d
time-alt = %I:%M %p
label = %date% %time%
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
interval = 30
[module/memory]
type = internal/memory
format = <label> <bar-used>
label = "MEM"
label-foreground = ${template/module/bar.label-foreground}
label-background = ${template/module/bar.label-background}
bar-used-width = ${template/module/bar.bar-width}
bar-used-fill = ${template/module/bar.bar-fill}
bar-used-fill-foreground = ${res/colors.accent-red}
bar-used-fill-background = ${template/module/bar.bar-fill-background}
bar-used-indicator = ${template/module/bar.bar-indicator}
bar-used-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
bar-used-indicator-background = ${template/module/bar.bar-indicator-background}
bar-used-empty = ${template/module/bar.bar-empty}
bar-used-empty-foreground = ${template/module/bar.bar-empty-foreground}
bar-used-empty-background = ${template/module/bar.bar-empty-background}
interval = 1
[module/mpd]
type = internal/mpd
format-online = <label-song> <bar-progress> <label-time>
format-offline = <label-offline>
label-song = %title%
label-song-foreground = ${res/colors.foreground}
label-song-background = ${res/colors.background}
label-song-maxlen = 25
label-song-ellipsis = true
label-offline = "SALT"
label-offline-foreground = ${res/colors.foreground}
label-offline-background = ${res/colors.background}
label-time = %elapsed%/%total%
label-time-foreground = ${res/colors.foreground}
label-time-background = ${res/colors.background}
bar-progress-width = 100
bar-progress-fill = ${template/module/bar.bar-fill}
bar-progress-fill-foreground = ${res/colors.accent-blue}
bar-progress-fill-background = ${template/module/bar.bar-fill-background}
bar-progress-indicator = ${template/module/bar.bar-indicator}
bar-progress-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
bar-progress-indicator-background = ${template/module/bar.bar-indicator-background}
bar-progress-empty = ${template/module/bar.bar-empty}
bar-progress-empty-foreground = ${template/module/bar.bar-empty-foreground}
bar-progress-empty-background = ${template/module/bar.bar-empty-background}
interval = 1
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <label>
format-warn = <label-warn>
label = %temperature%
label-foreground = ${colors.foreground}
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
label-warn = %temperature%
label-warn-foreground = ${xrdb:color9:#fb4934}
label-warn-foreground = ${res/colors.background}
label-warn-background = ${res/colors.accent-red}
[module/powermenu]
type = custom/menu
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
format-muted = <label-muted> <bar-volume>
format-spacing = 1
label-volume = "VOL"
label-volume-foreground = ${template/module/bar.label-foreground}
label-volume-background = ${template/module/bar.label-background}
label-muted = "VOL"
label-muted-foreground = ${res/colors.foreground-alt}
label-muted-background = ${template/module/bar.label-background}
label-open = PWR
label-open-foreground = ${colors.secondary}
label-close = PWR
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
bar-volume-width = ${template/module/bar.bar-width}
bar-volume-fill = ${template/module/bar.bar-fill}
bar-volume-fill-foreground = ${template/module/bar.bar-fill-foreground}
bar-volume-fill-background = ${template/module/bar.bar-fill-background}
bar-volume-indicator = ${template/module/bar.bar-indicator}
bar-volume-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
bar-volume-indicator-background = ${template/module/bar.bar-indicator-background}
bar-volume-empty = ${template/module/bar.bar-empty}
bar-volume-empty-foreground = ${template/module/bar.bar-empty-foreground}
bar-volume-empty-background = ${template/module/bar.bar-empty-background}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
interval = 1
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
[module/wlan]
type = internal/network
interface = wlp1s0
format-connected = <label-connected>
format-connected-foreground = ${res/colors.accent-green}
format-connected-background = ${res/colors.background}
format-disconnected = <label-disconnected>
format-disconnected-foreground = ${res/colors.accent-red}
format-disconnected-background = ${res/colors.background}
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
label-connected = %essid%
label-disconnected = %ifname%
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
interval = 3
[global/wm]
margin-top = 5
margin-bottom = 5
[module/xbacklight]
type = internal/xbacklight
inherit = template/module/bar
label = BRI
; vim:ft=dosini
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 75
label-ellipsis = true

470
.config/polybar/config.old Normal file
View File

@ -0,0 +1,470 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = ${xrdb:background:#1d2021}
background-alt = ${xrdb:bg2:#504945}
foreground = ${xrdb:color15:#ebdbb2}
foreground-alt = ${xrdb:color8:#928374}
primary = ${xrdb:color10:#b8bb26}
secondary = ${xrdb:color2:#98971a}
primary-alt = ${xrdb:color12:#83a598}
secondary-alt = ${xrdb:color4:#458588}
alert = ${xrdb:color9:#fb4934}
[bar/top]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 24
;offset-x = 10%
;offset-y = 1%
radius = 0.0
fixed-center = true
bottom = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
;border-size = 5
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 0
module-margin-right = 3
font-0 = fixed:pixelsize=10;1
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-0 = "Overpass:size=10;1"
;font-2 = siji:pixelsize=10;1
;font-2 = "Overpass:size=6;1"
font-1 = "Overpass:size=10;1"
font-2 = "Symbola:size=10;1"
font-3 =
modules-left = i3 separator xwindow
modules-center = date
modules-right = wlan eth temperature separator redshift
tray-position = right
tray-padding = 2
;tray-transparent = true
;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
[bar/bottom]
;monitor = ${env:MONITOR:HDMI-1}
width = ${bar/top.width}
height = ${bar/top.height}
;offset-x = 10%
;offset-y = 1%
radius = ${bar/top.radius}
fixed-center = true
bottom = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = ${bar/top.line-size}
line-color = ${bar/top.line-color}
;border-size = 5
border-color = #00000000
padding-left = ${bar/top.padding-left}
padding-right = ${bar/top.padding-right}
module-margin-left = ${bar/top.module-margin-left}
module-margin-right = ${bar/top.module-margin-right}
font-0 = ${bar/top.font-0}
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = ${bar/top.font-1}
;font-2 = siji:pixelsize=10;1
font-2 = ${bar/top.font-2}
modules-left = cpu memory
modules-center = mpd
modules-right = xbacklight volume battery
;tray-position = right
;tray-padding = 2
;tray-transparent = true
;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
[module/separator]
type = custom/text
content = "|"
content-foreground = ${colors.foreground}
content-padding = 1
fc-list | cut -f2 -d: | sort -u
[module/redshift]
type = custom/script
format = <label>
label = %output%
label-foreground = ${xrdb:color9:#fb4934}
interval = 5
exec = ~/.config/polybar/redshift.sh
[module/xwindow]
type = internal/xwindow
label = %title:0:75:...%
[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 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
type = internal/bspwm
label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %name%
label-occupied-padding = 2
label-urgent = %name%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %name%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = true
; Strip the numbers from workspaces, when applicable
;strip-wsnumbers = true
label-mode-padding = 2
label-mode-foreground = ${colors.background}
label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %name%
label-focused-foreground = ${colors.background}
label-focused-background = ${colors.primary}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
label-unfocused = %name%
label-unfocused-padding = ${self.label-focused-padding}
; visible = Active workspace on unfocused monitor
label-visible = %name%
label-visible-background = ${self.label-focused-background}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %name%
label-urgent-foreground = ${colors.background}
label-urgent-background = ${colors.alert}
label-urgent-padding = ${self.label-focused-padding}
[module/mpd]
type = internal/mpd
format-online = <label-song> <bar-progress> <label-time>
format-offline = <label-offline>
icon-prev = <<
icon-prev-foreground = ${colors.foreground}
icon-stop = ▪
icon-play = ▶
icon-pause = ▮▮
icon-pause-font = 3
icon-random =
icon-repeat = ⟳
icon-repeat-once = ⟳1
icon-next = >>
icon-next-foreground = ${colors.foreground}
label-song = %title%
label-song-foreground = ${colors.foreground}
label-song-maxlen = 25
label-song-ellipsis = true
label-offline = "/// MPD ///"
label-offline-foreground = ${colors.background-alt}
label-time = %elapsed%/%total%
label-time-foreground = ${colors.foreground}
bar-progress-width = 100
bar-progress-indicator = ${module/bartemplate.bar-indicator}
bar-progress-fill = ${module/bartemplate.bar-fill}
bar-progress-fill-foreground = ${xrdb:color9:#fb4934}
bar-progress-empty = ${module/bartemplate.bar-empty}
bar-progress-empty-foreground = ${module/bartemplate.bar-empty-foreground}
interval = 1
[module/bartemplate]
format = <label> <bar>
label = "<TEMPLATE>"
label-foreground = ${colors.foreground}
bar-width = 30
bar-fill = /
bar-fill-font = 1
bar-indicator =
bar-indicator-foreground = ${colors.foreground}
bar-indicator-font = ${self.bar-fill-font}
bar-fill-foreground = ${colors.foreground}
bar-empty = ${self.bar-fill}
bar-empty-font = ${self.bar-fill-font}
bar-empty-foreground = ${colors.background-alt}
[module/xbacklight]
type = internal/xbacklight
inherit = module/bartemplate
label = BRI
bar-fill-foreground = ${colors.primary-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
format = <label> <bar-load>
label = "CPU"
label-foreground = ${module/bartemplate.label-foreground}
bar-load-width = ${module/bartemplate.bar-width}
bar-load-fill = ${module/bartemplate.bar-fill}
bar-load-fill-font = ${module/bartemplate.bar-fill-font}
bar-load-fill-foreground = ${xrdb:color9:#fb4934}
bar-load-indicator =
bar-load-empty = ${self.bar-load-fill}
bar-load-empty-font = ${self.bar-load-fill-font}
bar-load-empty-foreground = ${colors.background-alt}
interval = 1
[module/memory]
type = internal/memory
format = <label> <bar-used>
label = "MEM"
label-foreground = ${module/bartemplate.label-foreground}
bar-used-width = ${module/bartemplate.bar-width}
bar-used-fill = ${module/bartemplate.bar-fill}
bar-used-fill-font = ${module/bartemplate.bar-fill-font}
bar-used-fill-foreground = ${xrdb:color9:#fb4934}
bar-used-indicator =
bar-used-empty = ${self.bar-used-fill}
bar-used-empty-font = ${self.bar-used-fill-font}
bar-used-empty-foreground = ${colors.background-alt}
interval = 1
[module/wlan]
type = internal/network
interface = wlp1s0
interval = 3.0
format-connected = <label-connected>
format-connected-foreground = ${colors.primary}
label-connected = "✓ %essid%"
format-disconnected = <label-disconnected>
label-disconnected = "✗ %ifname%"
label-disconnected-foreground = ${xrdb:color9:#fb4934}
ramp-signal-0 = ▁
ramp-signal-1 = ▂
ramp-signal-2 = ▃
ramp-signal-3 = ▄
ramp-signal-4 = ▅
ramp-signal-5 = ▆
ramp-signal-6 = ▇
ramp-signal-7 = █
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp0s31f6
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
label-connected-foreground = ${colors.primary}
format-disconnected =
;format-disconnected = <label-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 = %a
date-alt = %A, %B %d
time = %I:%M %p
time-alt = %I:%M %p
label = %date% %time%
label-foreground = ${colors.foreground}
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${colors.foreground}
format-muted = <label-muted> <bar-volume>
label-muted = VOL
label-muted-foreground = ${colors.foreground-alt}
bar-volume-width = ${module/bartemplate.bar-width}
bar-volume-foreground = ${colors.primary-alt}
;${xrdb:color14:#8ec07c}
bar-volume-indicator =
bar-volume-fill = ${module/bartemplate.bar-fill}
bar-volume-fill-font = ${module/bartemplate.bar-fill-font}
bar-volume-fill-foreground = ${colors.primary-alt}
;${xrdb:color14:#8ec07c}
bar-volume-empty = ${module/bartemplate.bar-empty}
bar-volume-empty-font = ${module/bartemplate.bar-empty-font}
bar-volume-empty-foreground = ${module/bartemplate.bar-empty-foreground}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 95
format-charging = <label-charging> <bar-capacity>
label-charging = CHR
label-charging-foreground = ${self.bar-capacity-fill-foreground}
format-discharging = <label-discharging> <bar-capacity>
label-discharging = BAT
label-discharging-foreground = ${colors.foreground}
format-full = <label-full> <bar-capacity>
label-full = BAT
label-full-foreground = ${self.bar-capacity-fill-foreground}
bar-capacity-width = ${module/bartemplate.bar-width}
bar-capacity-foreground = ${colors.primary}
bar-capacity-indicator =
bar-capacity-fill = ${module/bartemplate.bar-fill}
bar-capacity-fill-font = ${module/bartemplate.bar-fill-font}
bar-capacity-fill-foreground = ${colors.primary}
bar-capacity-empty = ${module/bartemplate.bar-empty}
bar-capacity-empty-font = ${module/bartemplate.bar-empty-font}
bar-capacity-empty-foreground = ${module/bartemplate.bar-empty-foreground}
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <label>
format-warn = <label-warn>
label = %temperature%
label-foreground = ${colors.foreground}
label-warn = %temperature%
label-warn-foreground = ${xrdb:color9:#fb4934}
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = PWR
label-open-foreground = ${colors.secondary}
label-close = PWR
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
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
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini