Last active
May 3, 2020 17:13
-
-
Save jhilker98/6bed93324530b9ed413df12f0c9dc70c to your computer and use it in GitHub Desktop.
polybar config
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
[colors] | |
;background = ${xrdb:color0:;222} | |
;background = ;cc${xrdb:color0:;222} | |
background = ${env:color0_alpha:#CC0c0c0c} | |
;background = ;CC${color0/';'} | |
background-alt = #444 | |
bbg = ${env:BGCOLOR:#CC0c0c0c} | |
foreground = ${xrdb:color7:#222} | |
foreground-alt = ${xrdb:color7:#222} | |
primary = ${xrdb:color1:#222} | |
secondary = ${xrdb:color2:#222} | |
alert = ${xrdb:color3:#222} | |
tertiary = ${xrdb:color4:#222} | |
border = #00000000 | |
;---------; | |
; MODULES ; | |
;---------; | |
[module/time] | |
type = internal/date | |
time = %I:%M %p | |
;;12-Hour Time with AM/PM in caps | |
;time = %H:%M | |
;; 24-Hour Time | |
label = %time% | |
label-font = 1 | |
label-padding = 2 | |
label-underline = ${colors.tertiary} | |
[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 | |
label-mode-padding = 1.75 | |
label-mode-foreground = ;000 | |
label-mode-background = ${colors.primary} | |
; focused = Active workspace on focused monitor | |
label-focused = %index% | |
label-focused-background = ${colors.background} | |
label-focused-underline= ${colors.tertiary} | |
label-focused-padding = 1.75 | |
; unfocused = Inactive workspace on any monitor | |
label-unfocused = %index% | |
label-unfocused-padding = 1.75 | |
; 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 | |
label-urgent = %index% | |
label-urgent-background = ${colors.alert} | |
label-urgent-padding = 1.75 | |
; Separator in between workspaces | |
; label-separator = | | |
[module/battery] | |
type = internal/battery | |
full-at = 100 | |
time-format = %H:%M | |
battery = BAT0 | |
adapter = ADP0 | |
format-charging = <animation-charging> <label-charging> | |
;label-charging = %percentage%% (%time%) | |
label-charging = %percentage%% | |
format-discharging = <ramp-capacity> <label-discharging> | |
;label-discharging = %percentage%% (%time%) | |
label-discharging = %percentage%% | |
format-full = <label-full> | |
;label-charging-underline = ${colors.tertiary} | |
;label-discharging-underline = ${colors.tertiary} | |
format-charging-underline = ${colors.tertiary} | |
format-discharging-underline = ${colors.tertiary} | |
format-full-prefix = " " | |
ramp-capacity-0 = | |
ramp-capacity-1 = | |
ramp-capacity-2 = | |
ramp-capacity-3 = | |
ramp-capacity-4 = | |
ramp-capacity-0-foreground = ${colors.primary} | |
ramp-capacity-foreground = ${colors.foreground} | |
bar-capacity-width = 10 | |
animation-charging-0 = "" | |
animation-charging-1 = "" | |
animation-charging-2 = "" | |
animation-charging-3 = "" | |
animation-charging-4 = "" | |
animation-charging-framerate = 750 | |
label-font = 1 | |
; ramp-capacity-0-underline = ${colors.tertiary} | |
; ramp-capacity-1-underline = ${colors.tertiary} | |
; ramp-capacity-2-underline = ${colors.tertiary} | |
; ramp-capacity-3-underline = ${colors.tertiary} | |
; ramp-capacity-4-underline = ${colors.tertiary} | |
; | |
; animation-charging-0-underline = ${colors.tertiary} | |
; animation-charging-1-underline = ${colors.tertiary} | |
; animation-charging-2-underline = ${colors.tertiary} | |
; animation-charging-3-underline = ${colors.tertiary} | |
; animation-charging-4-underline = ${colors.tertiary} | |
; Uncomment these for anmated discharging battery underline | |
; ramp-capacity-0-underline = ${colors.primary} | |
; ramp-capacity-1-underline = ${colors.primary} | |
; ramp-capacity-2-underline = ${colors.tertiary} | |
; ramp-capacity-3-underline = ${colors.tertiary} | |
; ramp-capacity-4-underline = ${colors.tertiary} | |
[module/volume] | |
type = internal/alsa | |
;speaker-mixer = Speaker | |
;headphone-mixer = Headphone | |
;headphone-id = 16 | |
;mapped = true | |
format-volume = <ramp-volume> <label-volume> | |
label-volume = %percentage%% | |
format-muted = <label-muted> | |
label-muted = %percentage%% | |
ramp-volume-0 = | |
ramp-volume-1 = | |
ramp-volume-2 = | |
ramp-volume-3 = | |
ramp-volume-4 = | |
ramp-volume-5 = | |
ramp-volume-6 = | |
format-volume-underline = ${colors.tertiary} | |
format-muted-underline = ${colors.tertiary} | |
; Uncomment line below for different underline when muted. | |
; format-muted-underline = ${colors.primary} | |
[module/wlan] | |
type = internal/network | |
interface = wlp1s0 | |
interval = 5 | |
label-font = 2 | |
label-connected = %essid% | |
label-disconnected = Not Connected | |
label-connected-underline = ${colors.tertiary} | |
label-disconnected-underline = ${colors.tertiary} | |
[module/date] | |
type = internal/date | |
date = %a, %d %b | |
label = %date% | |
label-font = 1 | |
label-padding = 2 | |
label-underline = ${colors.tertiary} | |
[module/keyboard] | |
type = internal/xkeyboard | |
format = <label-indicator> | |
format-underline = ${colors.tertiary} | |
indicator-icon-0 = caps lock;-CL;+CL | |
indicator-icon-1 = scroll lock;;+SL | |
indicator-icon-2 = num lock;-NL;+NL | |
label-indicator-on-capslock = CAPS | |
label-indicator-off-capslock = | |
label-indicator-on-numlock = NUM | |
label-indicator-off-numlock = | |
label-indicator-on-scrolllock = SCRL | |
label-indicator-off-scrolllock = | |
; [module/news] | |
include-file = ~/.config/polybar/scripts/news/module.conf | |
[module/notifs] | |
type = custom/script | |
interval = 3 | |
format-suffix = " ● " | |
format-underline = ${colors.tertiary} | |
exec = ~/.config/polybar/scripts/notifs/rofication-status.py | |
[module/weather] | |
type = custom/script | |
interval = 3 | |
format-prefix = " " | |
format-prefix-font = 4 | |
format-prefix-underline = ${colors.tertiary} | |
exec = ~/.config/polybar/scripts/weather/wx.sh | |
label-underline = ${colors.tertiary} | |
;------; | |
; BARS ; | |
;------; | |
[bar/top] | |
font-0 = "Iosevka:pixelsize=12;3" | |
font-1 = "Material Icons:size=12;3" | |
font-2 = "Weather Icons:size=12;0" | |
font-3 = "FontAwesome:size=12;3" | |
font-4 = "Symbola:size=12;0" | |
line-size = 2.75 | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
width = 100% | |
height = 27 | |
radius = 4 | |
modules-left = i3 | |
modules-center = time | |
modules-right = volume wlan battery | |
padding = 1 | |
module-margin = 1 | |
[bar/btm] | |
font-0 = "Iosevka:pixelsize=12;3" | |
font-1 = "Material Icons:size=12;3" | |
font-2 = "Weather Icons:size=12;0" | |
font-3 = "FontAwesome:size=12;3" | |
; override-redirect = true | |
; wm-restack = i3 | |
; border-color = ;00000000 | |
; border-bottom-size = 5 | |
border-top-size = 1 | |
; offset-x = 36 | |
; offset-y = 8 | |
line-size = 2.75 | |
bottom = true | |
background = ${colors.bbg} | |
foreground = ${colors.foreground} | |
width = 100% | |
height = 31 | |
radius = 4 | |
modules-left = date keyboard | |
;modules-center = news | |
; when wttr.in isn't down | |
modules-right = notifs weather | |
; when wttr.in is down | |
; modules-right = notifs | |
padding = 1 | |
module-margin = 1 | |
; vi:set filetype=dosini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment