2020-01-10 00:25:16 -05:00

215 lines
5.0 KiB
INI

; vim:ft=dosini
[colors]
black = #1d2021
darkred = #cc241d
darkgreen = #98971a
darkyellow = #d79921
darkblue = #458588
darkmagenta = #b16286
darkcyan = #689d6a
lightgray = #a89984
gray = #928374
red = #fb4934
green = #b8bb26
yellow = #fabd2f
blue = #83a598
magenta = #d3869b
cyan = #8ec07c
white = #ebdbb2
background = #1d2021
foreground = #ebdbb2
[bar/main]
monitor = ${env:MONITOR:}
enable-ipc = true
width = 100%
height = 20
fixed-center = false
; allow scrolling workspaces
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = ${colors.red}
border-size = 0
border-color = ${colors.white}
padding-left = 0
padding-right = 0
module-margin-left = 1
module-margin-right = 1
font-0 = "Sauce Code Pro:size=9;1"
font-1 = "Sauce Code Pro:size=8;1"
font-2 = "Sauce Code Pro:scale=10:style=Regular;2"
font-3 = "Sauce Code Pro:size=9;1"
wm-restack = i3
modules-left = i3
modules-center = xwindow
modules-right = sys_updates cpu memory volume wifi ethernet battery date
tray-position = right
tray-padding = 0
[module/sys_updates]
type = custom/script
exec = ~/.local/bin/polybar_scripts/aur_updates
format = <label>
label = %{A1:$TERMINAL -e yay >/dev/null 2>&1 &:}%output%%{A}
label-underline=#ff0000
label-overline=#ff0000
interval = 1000
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98
; orange denotes charging
format-charging =<label-charging>
label-charging = Batt: %percentage%%
label-charging-overline=#ffa500
label-charging-underline=#ffa500
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = Batt: %percentage%%
; changes color for which third battery is in
; red=0-33, yellow=34-66, green=67-100
ramp-capacity-0 = %{u#ff0000}
ramp-capacity-1 = %{u#ffea00}
ramp-capacity-2 = %{u#20c723}
[module/cpu]
type = internal/cpu
interval = 0.5
format = <label>
format-prefix-foreground = ${colors.gray}
label = %{A1:$TERMINAL -e htop >/dev/null 2>&1 &:}CPU: %percentage%%%{A}
[module/date]
type = internal/date
interval = 60
date = "%Y %b %d (%a)"
time = "%I:%M%p"
format-prefix-foreground = ${colors.gray}
label = %{A1:google-chrome-stable https\://calendar.google.com >/dev/null 2>&1 &:}%date% %time%%{A}
[module/ethernet]
type = internal/network
interface = eth1
interval = 3.0
format-connected-underline = ${colors.green}
format-connected-prefix-foreground = ${colors.gray}
label-connected = %local_ip%
format-disconnected = <label-disconnected>
format-disconnected-underline = ${colors.red}
label-disconnected = No Eth
label-disconnected-foreground = ${colors.gray}
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
label-mode-padding = 1
label-mode-foreground = ${colors.white}
label-mode-background = ${colors.darkyellow}
; focused = Active workspace on focused monitor
label-focused = %index%
label-focused-background = #3f3f3f
label-focused-underline = #fba922
label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-padding = 1
; visible = ctive 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
label-urgent = %index%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-padding = 1
[module/memory]
type = internal/memory
interval = 1
format-prefix-foreground = ${colors.gray}
label = RAM: %gb_used%/%gb_total%
[settings]
screenchange-reload = true
[module/volume]
type = internal/alsa
format-volume = [<label-volume> <bar-volume>]
label-volume = %{A3:$TERMINAL -e alsamixer >/dev/null 2>&1 &:}%percentage%%%{A}
label-volume-foreground = ${colors.foreground}
format-muted-foreground = ${colors.gray}
label-muted = Muted
bar-volume-width = 10
bar-volume-foreground-0 = ${colors.blue}
bar-volume-foreground-1 = ${colors.blue}
bar-volume-foreground-2 = ${colors.green}
bar-volume-foreground-3 = ${colors.green}
bar-volume-foreground-4 = ${colors.green}
bar-volume-foreground-5 = ${colors.yellow}
bar-volume-foreground-6 = ${colors.red}
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.gray}
[module/wifi]
type = internal/network
interface = wlp2s0
interval = 3.0
format-connected = <label-connected>
label-connected = %{A1:$TERMINAL -e nmtui >/dev/null 2>&1 &:}Wifi: %essid%%{A}
format-disconnected = <label-disconnected>
format-disconnected-underline = ${colors.red}
label-disconnected = %{A1:$TERMINAL -e nmtui >/dev/null 2>&1 &:}No wifi%{A}
label-disconnected-foreground = ${colors.gray}
[global/wm]
margin-top = 5
margin-bottom = 5
[module/xwindow]
type = internal/xwindow
label = %title:0:100:...%
format-foreground = ${colors.blue}