Created
January 19, 2017 18:40
-
-
Save Mitame/fd805c6df2d8a04ebe33a1d067dd1aee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;===================================================== | |
; | |
; To learn more about how to configure Polybar | |
; go to https://github.com/jaagr/polybar | |
; | |
; The README contains alot of information | |
; | |
;===================================================== | |
[colors] | |
background = #cc222222 | |
background-alt = #cc666666 | |
background-opaque = #222222 | |
foreground = #dfdfdf | |
foreground-alt = #5e81b1 | |
primary = #ffb52a | |
secondary = #e60053 | |
alert = #bd2c40 | |
good = ${xrdb:*color2:#0000ff} | |
nominal = ${xrdb:*color3:#00ff00} | |
degraded = ${xrdb:*color1:#ff0000} | |
[global/wm] | |
margin-top = 5 | |
margin-bottom = 5 | |
[bar/main] | |
;monitor = ${env:MONITOR:HDMI-1} | |
width = 100% | |
height = 27 | |
offset-x = 0 | |
offset-y = 0 | |
;background = ${xrdb:color9} | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
overline-size = 2 | |
overline-color = #f00 | |
underline-size = 2 | |
underline-color = #00f | |
border-bottom-size = 2 | |
border-bottom-color = #cc444444 | |
padding-left = 0 | |
padding-right = 2 | |
module-margin-left = 1 | |
module-margin-right = 2 | |
font-0 = Inziu Iosevka J:pixelsize=13 | |
font-1 = FontAwesome:pixelsize=13;-1 | |
;font-2 = PowerlineSymbols:pixelsize=16 | |
modules-left = i3 xwindow | |
modules-center = mpd | |
modules-right = updates cpu memory battery date volume | |
tray-position = right | |
tray-padding = 2 | |
;tray-transparent = true | |
;tray-background = #cc222222 | |
wm-restack = i3 | |
;override-redirect = true | |
scroll-up = i3wm-wsnext | |
scroll-down = i3wm-wsprev | |
[module/xwindow] | |
type = internal/xwindow | |
label = %title:0:100:...% | |
[module/xkeyboard] | |
type = internal/xkeyboard | |
;label-layout = %{F#55}%{F-} %layout% | |
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/mpd] | |
type = internal/mpd | |
host = 127.0.0.1 | |
port = 6600 | |
interval = 1 | |
format-online = <label-song> | |
format-online-underline = #0a6cf5 | |
label-song = %album:0:50:...% - %title:0:50:...% | |
[module/freespace] | |
type = internal/fs | |
interval = 25 | |
mount-0 = / | |
format-prefix = " " | |
label-mounted = %mountpoint% %free% | |
label-unmounted-foreground = ${colors.foreground-alt} | |
[module/i3] | |
type = internal/i3 | |
format = <label-state> <label-mode> | |
index-sort = true | |
wrapping-scroll = false | |
label-mode-padding = 2 | |
label-mode-foreground = #000 | |
label-mode-background = ${colors.primary} | |
label-focused = %index% | |
label-focused-background = ${colors.background-alt} | |
label-focused-underline = ${colors.primary} | |
label-focused-padding = 2 | |
label-unfocused = %index% | |
label-unfocused-padding = 2 | |
label-urgent = %index% | |
label-urgent-background = ${colors.alert} | |
label-urgent-padding = 2 | |
label-visible = %index% | |
label-visible-background = ${self.label-focused-background} | |
label-visible-underline = ${self.label-focused-underline} | |
label-visible-padding = ${self.label-focused-padding} | |
[module/cpu] | |
type = internal/cpu | |
interval = 2 | |
format-prefix = " " | |
format-prefix-foreground = ${colors.foreground-alt} | |
format-underline = #ff4b4b | |
label = %percentage:3:3%% | |
[module/memory] | |
type = internal/memory | |
interval = 2 | |
format-underline = #4bffdc | |
label = %percentage_used:3:3%% | |
format-prefix = " " | |
format-prefix-foreground = ${colors.foreground-alt} | |
[module/date] | |
type = internal/date | |
interval = 1 | |
date = %Y-%m-%d | |
date-alt = ${self.date} | |
time = %H:%M:%S | |
time-alt = ${self.time} | |
format-prefix = " " | |
format-prefix-foreground = ${colors.foreground-alt} | |
format-underline = #0a6cf5 | |
label = %date% %time% | |
[module/volume] | |
type = internal/volume | |
format-volume = <ramp-volume> <label-volume> | |
label-volume = %percentage:3:3%% | |
label-volume-foreground = ${root.foreground} | |
format-muted = <label-muted> | |
label-muted = muted | |
label-muted-foreground = #66 | |
ramp-volume-0 = | |
ramp-volume-1 = | |
ramp-volume-2 = | |
[module/battery] | |
type = custom/script | |
exec = .config/polybar/bat.py | |
tail = true | |
interval = 0 | |
format = <label> | |
format-underline = ${colors.good} | |
label = %output% | |
[module/temperature] | |
type = internal/temperature | |
thermal-zone = 0 | |
warn-temperature = 65 | |
interval = 1 | |
format = <ramp> <label> | |
format-underline = ${colors.nominal} | |
format-warn = <ramp> <label-warn> | |
format-warn-underline = ${colors.degraded} | |
label = %temperature% | |
label-warn = %temperature% | |
label-warn-foreground = ${colors.degraded} | |
ramp-0 = | |
ramp-1 = | |
ramp-2 = | |
ramp-3 = | |
ramp-4 = | |
[module/net_rate_wlp] | |
type = internal/network | |
interface = wlp3s0 | |
interval = 2.5 | |
label-connected = %downspeed:9% %upspeed:9% | |
label-disconnected = | |
[module/net_rate_enp] | |
inherit = module/net_rate_wlp | |
interface = enp0s25 | |
[module/updates] | |
type = custom/script | |
interval = 600 | |
format = <label> | |
format-underline = ${xrdb:*.color4} | |
label = "%output:0:30%" | |
exec = .config/polybar/pkg.sh | |
exec-if = ping -w 2 -c 1 8.8.8.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment