Update polybar config

This commit is contained in:
Colin Powell
2019-11-24 17:23:42 -05:00
parent a69edc22ab
commit 0e5a1c4afb

View File

@ -1,327 +1,320 @@
# vim: ft=dosini
[colors] [colors]
accent = #EDD080 background = #00222
bckgrd = #121212 background-alt = #444
select = #161A1B foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
background = ${xrdb:color0:self.bckgrd} [bar/primary]
background-alt = ${self.select} width = 100%
foreground = ${xrdb:color6:#A5ffffff} height = 20
foreground-alt = ${xrdb:color7:#222} radius = 0
primary = ${xrdb:color1:self.accent} fixed-center = false
secondary = ${xrdb:color2:#222}
alert = ${xrdb:color3:#bd2c40}
white = #FFFFFF
grey = #AAAAAA
transparent = #00000000
[global/wm]
margin-top = 0
margin-bottom = 0
[settings]
throttle-output = 5
throttle-output-for = 10
throttle-input-for = 30
screenchange-reload = true
bargapp= 10
barwidth = 100%
barheigh = 48
[bar/main]
monitor-strict = true
fixed-center = true
dpi = 96
bottom = false
width = ${settings.barwidth}
height = ${settings.barheigh}
offset-x = 0
offset-y = 0
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
overline-size = 0 line-size = 3
overline-color = #f00 line-color = #f00
underline-size = 2 border-size = 0
underline-color = #00f border-color = #00000000
border-top-size = ${settings.bargapp} padding-left = 0
border-left-size = ${settings.bargapp} padding-right = 0
border-right-size = ${settings.bargapp} module-margin-left = 1
border-bottom-size = 0 module-margin-right = 2
border-color = ${colors.transparent} font-0 = Go Mono:fontformat=truetype:size=8:antialias=true
radius-top = 10 font-1 = unifont:fontformat=truetype:size=8:antialias=true
radius-bottom = 10 font-2 = Siji:pixelsize=10
spacing = 2 font-3 = FontAwesome:pixelsize=8;0
modules-left = i3 pulseaudio
#modules-right = pulseaudio xbacklight filesystem xkeyboard memory cpu wlan battery temperature date powermenu
modules-right = wlan eth cpu temperature battery date powermenu
tray-position = none
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
[bar/secondary]
monitor = "eDP-1"
width = 100%
height = 27
radius = 10.0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 4
border-color = #00000000
padding-left = 2 padding-left = 2
padding-right = 2 padding-right = 2
module-margin-left = 2 module-margin-left = 1
module-margin-right = 2 module-margin-right = 2
font-0 = Monoid:size=12;4 font-0 = Roboto Mono Nerd Font Complete Mono:fontformat=truetype:size=8:antialias=false
font-1 = unifont:size=12;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false
font-2 = FontAwesome:size=12;3 font-2 = siji:pixelsize=10
font-3 = NotoSans-Regular:size=12;-1 modules-left = i3 mpd pulseaudio
font-4 = MaterialIcons:size=16;5 #modules-right = pulseaudio xbacklight filesystem xkeyboard memory cpu wlan battery temperature date powermenu
modules-right = wlan eth cpu temperature battery date powermenu
tray-position = right tray-position = right
tray-padding = 4 tray-padding = 2
modules-left = cast wlan tray-background = #0063ff
modules-center = mpd scroll-up = i3wm-wsnext
modules-right = filesystem battery volume light date scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
[bar/workspaces] [module/xwindow]
monitor-strict = true type = internal/xwindow
dpi = 96 label = %title:0:30:...%
bottom = true
width = ${settings.barwidth}
height = 3
background = ${colors.transparent}
foreground = ${colors.foreground}
border-top-size = 0
border-bottom-size = 0
border-color = ${colors.transparent}
font-0 = Monoisome:size=10;4
font-1 = FontAwesome:pixelsize=10;3
font-5 = unifont:size=14;1
modules-center = i3 BSP
[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/i3] [module/i3]
type = internal/i3 type = internal/i3
format = <label-state> <label-mode> format = <label-state> <label-mode>
pin-workspaces = true index-sort = true
wrapping-scroll = false
label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.primary}
label-focused = %name% label-focused = %name%
label-focused-foreground= ${colors.background} label-focused-background = ${colors.background-alt}
label-focused-background = ${colors.foreground} label-focused-underline= ${colors.primary}
label-focused-underline = ${colors.foreground} label-focused-padding = 2
label-focused-padding = 3
label-unfocused = %name% label-unfocused = %name%
label-unfocused-padding = 2 label-unfocused-padding = 2
label-unfocused-background = ${colors.background} label-visible = %name%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
label-urgent = %name% label-urgent = %name%
label-urgent-foreground= ${colors.alert} label-urgent-background = ${colors.alert}
label-urgent-background = ${colors.background-alt}
label-urgent-padding = 2 label-urgent-padding = 2
label-empty = %name% strip-wsnumbers = false
label-empty-background = ${colors.background-alt}
label-empty-padding = ${self.label-focused-padding}
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #fff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
[module/mouseloc] [module/backlight-acpi]
type = custom/script inherit = module/xbacklight
exec = echo "X:" $(xdotool getmouselocation | awk '{print substr($2,3,4)}') " Y:" $(xdotool getmouselocation | awk '{print substr($1,3,4)}') type = internal/backlight
interval = 0.1 card = intel_backlight
label = %output%
format = <label>
format-foreground = ${colors.foreground}
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
interval = 1
format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <icon-repeat> <icon-random> <bar-progress> <label-time> <label-song>
icon-play = 
icon-pause = 
icon-stop = 
icon-prev = 
icon-next = 
icon-random = 
icon-repeat = 
toggle-on-foreground =
toggle-off-foreground = #55
bar-progress-width = 30
bar-progress-format = %{A4:mpdseek+2: A5:mpdseek-2:}%fill%%indicator%%empty%%{A A}
bar-progress-indicator = |
bar-progress-indicator-foreground = #ff
bar-progress-indicator-font = 3
bar-progress-fill = —
bar-progress-fill-foreground = #bb
bar-progress-fill-font = 3
bar-progress-empty = —
bar-progress-empty-font = 3
bar-progress-empty-foreground = #44
[module/title]
type = internal/xwindow
format = <label>
;format-foreground = ${colors.foreground}
[module/search]
type = custom/script
exec = echo " search: "
interval = 60
label = %output%
format = <label>
format-foreground = ${colors.background}
format-background = ${colors.foreground}
[module/cpu] [module/cpu]
format-label = internal/cpu
format = <label>
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
label = " %percentage%%" format-prefix = " "
format-foreground = ${colors.foreground} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = CPU %percentage:2%%
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
label = " %percentage_used%%" format-prefix = " "
format-foreground = ${colors.foreground} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = MEM %percentage_used%%
[module/temperature]
type = internal/temperature
warn-temperature = 65
format = <label>
format-warn = <label-warn>
label = %temperature%
label-warn = %temperature%!!!
[module/cputemp]
type = custom/script
exec = sensors | grep --max-count=1 "CPU Temperature:" | awk '{print substr($0,22,2)}'
interval = 10
label = " %output%°C"
format-foreground = ${colors.foreground}
[module/gputemp]
type = custom/script
exec = nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
interval = 10
label = "GPU %output%°C"
format-foreground = ${colors.foreground}
[module/wlan] [module/wlan]
type = internal/network type = internal/network
interface = wlp2s0 interface = wlp3s0
interval = 3.0 interval = 3.0
format-connected = <label-connected> format-connected = <ramp-signal> <label-connected>
label-connected =  %essid%  %signal%  %upspeed%  %downspeed% format-connected-underline = #9f78e1
label-disconnected = "%{A1:connman-gtk &:}%{A}" label-connected = %essid%
label-disconnected-foreground = #5b format-disconnected = <label-disconnected>
format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 =  ramp-signal-0 = 
ramp-signal-1 =  ramp-signal-1 = 
ramp-signal-2 =  ramp-signal-2 = 
ramp-signal-3 =  ramp-signal-3 = 
ramp-signal-4 =  ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground} ramp-signal-foreground = ${colors.foreground-alt}
format-connected-foreground = ${colors.foreground}
[module/eth]
type = internal/network
interface = enp0s25
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
[module/date] [module/date]
type = internal/date type = internal/date
interval = 1.0 interval = 5
date = %a %b %d, date =
date-alt = " %Y-%m-%d"
time = %H:%M time = %H:%M
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S time-alt = %H:%M:%S
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time% label = %date% %time%
format = <label>
format-foreground = ${colors.foreground}
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = Volume %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 = true
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}
sink = @DEFAULT_SINK@
[module/volume] [module/alsa]
type = internal/volume type = internal/alsa
format-volume = <ramp-volume><label-volume> format-volume = <label-volume> <bar-volume>
format-muted = <label-muted> label-volume = VOL
format-volume-foreground = ${colors.foreground} label-volume-foreground = ${root.foreground}
label-volume = %percentage% format-muted-prefix = " "
label-muted =  M format-muted-foreground = ${colors.foreground-alt}
label-muted-foreground = #aaa label-muted = sound muted
ramp-volume-0 = bar-volume-width = 10
ramp-volume-1 =  bar-volume-foreground-0 = #55aa55
ramp-volume-2 =  bar-volume-foreground-1 = #55aa55
ramp-headphones-0 =  bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
[module/pomo] bar-volume-foreground-5 = #f5a70a
type = custom/script bar-volume-foreground-6 = #ff5555
interval = 1 bar-volume-gradient = false
exec = pomo status | awk '{print substr($3,1,6)}' | grep -o '[0-9]\+' | sed 'N;s/\n/ : /' bar-volume-indicator = |
label = " %output%" bar-volume-indicator-font = 2
format-foreground = ${colors.foreground} bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
[module/bresilla] bar-volume-empty-font = 2
type = custom/script bar-volume-empty-foreground = ${colors.foreground-alt}
interval = 1
exec = echo "BRESILLA"
label = "%output%"
click-left = firefox --new-tab "www.bresilla.com"
format-foreground = ${colors.foreground}
[module/light]
type = internal/backlight
card = intel_backlight
enable-scroll = true
format = <label>
label =  %percentage%%
label-foreground = ${colors.foreground}
[module/battery] [module/battery]
type = internal/battery type = internal/battery
battery = BAT0 battery = BAT0
adapter = AC adapter = AC
full-at = 98 full-at = 86
time-format = %H:%M
label-charging = %percentage%%
label-discharging = %percentage%%
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a
format-discharging = <animation-discharging> <label-discharging> format-discharging = <animation-discharging> <label-discharging>
format-charging-foreground = ${colors.foreground} format-discharging-underline = ${self.format-charging-underline}
label-charging-foreground = ${colors.foreground} format-full-prefix = " "
format-discharging-foreground = ${colors.foreground} format-full-prefix-foreground = ${colors.foreground-alt}
label-discharging-foreground = ${colors.foreground} format-full-underline = ${self.format-charging-underline}
format-full-prefix = " " ramp-capacity-0 = 
format-full-prefix-foreground = ${colors.foreground} ramp-capacity-1 = 
label-full-foreground = ${colors.foreground} ramp-capacity-2 = 
animation-charging-0 =  ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-1 = animation-charging-0 =
animation-charging-2 = animation-charging-1 =
animation-charging-3 = animation-charging-2 =
animation-charging-4 =  animation-charging-foreground = ${colors.foreground-alt}
animation-charging-foreground = ${colors.foreground} animation-charging-framerate = 750
animation-charging-framerate = 500 animation-discharging-0 = 
animation-discharging-0 = animation-discharging-1 =
animation-discharging-1 = animation-discharging-2 =
animation-discharging-2 =  animation-discharging-foreground = ${colors.foreground-alt}
animation-discharging-3 =  animation-discharging-framerate = 750
animation-discharging-4 = 
animation-discharging-framerate = 1000
animation-discharging-foreground = ${colors.foreground}
click-left = bash ~/.startup -r
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature-f%
label-warn = %temperature-f%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
[module/jgmenu] [module/powermenu]
type = custom/text type = custom/menu
content-padding = 2 expand-right = true
content = menu format-spacing = 1
click-left = "jgmenu_run >/dev/null 2>&1 &" label-open = 
label-open-foreground = ${colors.secondary}
[module/filesystem] label-close =  cancel
type = internal/fs label-close-foreground = ${colors.secondary}
mount-0 = / label-separator = |
interval = 10 label-separator-foreground = ${colors.foreground-alt}
fixed-values = true menu-0-0 = reboot
spacing = 4 menu-0-0-exec = menu-open-1
format-mounted = <label-mounted> menu-0-1 = power off
format-unmounted = <label-unmounted> menu-0-1-exec = menu-open-2
label-mounted =  %percentage_used%% menu-1-0 = cancel
label-mounted-foreground = ${colors.foreground} menu-1-0-exec = menu-open-0
label-unmounted = %mountpoint%: not mounted menu-1-1 = reboot
label-unmounted-foreground = ${colors.foreground} 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
pseudo-transparency = false
[global/wm]
margin-top = 0
margin-bottom = 0