Created
January 3, 2019 00:57
-
-
Save stav121/c1621f90e50c0f8b077a6901d5f0b7e4 to your computer and use it in GitHub Desktop.
Transparent Polybar Config
This file contains hidden or 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 = #1d1f2110 | |
background-alt = #282a2e | |
foreground = #1d1f21 | |
foreground-alt = #1d1f21 | |
[bar/main_bar] | |
width = 100% | |
height = 27 | |
;offset-x = 1% | |
;offset-y = 1% | |
radius = 6.0 | |
fixed-center = true | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
line-size = 1 | |
line-color = ${colors.foreground} | |
border-size = 4 | |
border-color = #00000000 | |
padding-left = 0 | |
padding-right = 2 | |
module-margin-left = 1 | |
module-margin-right = 2 | |
font-0 = "Source Code Pro Semibold:size=10;1" | |
font-1 = "Font Awesome 5 Free:style=Solid:size=10;1" | |
font-2 = "Font Awesome 5 Brands:size=10;" | |
modules-left = ewmh | |
modules-center = date | |
modules-right = xbacklight pulseaudio wlan battery_0 battery_1 powermenu | |
tray-position = | |
cursor-click = pointer | |
cursor-scroll = ns-resize | |
[module/xwindow] | |
type = internal/xwindow | |
label = %title:0:30:...% | |
[module/xbacklight] | |
type = internal/xbacklight | |
format = <label> <bar> | |
label = " " | |
label-foreground = ${colors.foreground-alt} | |
bar-width = 10 | |
bar-indicator = | | |
bar-indicator-foreground = ${colors.foreground} | |
bar-indicator-font = 2 | |
bar-fill = ─ | |
bar-fill-font = 2 | |
bar-fill-foreground = ${colors.foreground-alt} | |
bar-empty = ─ | |
bar-empty-font = 2 | |
bar-empty-foreground = ${colors.background-alt} | |
[module/backlight-acpi] | |
inherit = module/xbacklight | |
type = internal/backlight | |
card = intel_backlight | |
[module/wlan] | |
type = internal/network | |
interface = wlp3s0 | |
interval = 3.0 | |
format-connected = <ramp-signal> <label-connected> | |
label-connected = %essid% | |
format-disconnected = | |
ramp-signal-0 = | |
ramp-signal-1 = | |
ramp-signal-2 = | |
ramp-signal-3 = | |
ramp-signal-4 = | |
ramp-signal-foreground = ${colors.foreground-alt} | |
[module/date] | |
type = internal/date | |
interval = 5 | |
date = | |
date-alt = " %Y-%m-%d" | |
time = %H:%M | |
time-alt = %H:%M:%S | |
format-prefix = | |
format-prefix-foreground = ${colors.foreground-alt} | |
label = %date% %time% | |
[module/pulseaudio] | |
type = internal/pulseaudio | |
format-volume = <label-volume> <bar-volume> | |
label-volume = | |
label-volume-foreground = ${colors.foreground-alt} | |
label-muted = muted | |
label-muted-foreground = ${colors.foreground-alt} | |
bar-volume-width = 10 | |
bar-volume-foreground-0 = ${colors.foreground-alt} | |
bar-volume-foreground-1 = ${colors.foreground-alt} | |
bar-volume-foreground-2 = ${colors.foreground-alt} | |
bar-volume-foreground-3 = ${colors.foreground-alt} | |
bar-volume-foreground-4 = ${colors.foreground-alt} | |
bar-volume-foreground-5 = ${colors.foreground-alt} | |
bar-volume-foreground-6 = ${colors.foreground-alt} | |
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.background-alt} | |
[module/battery_0] | |
type = internal/battery | |
full-at = 99 | |
battery = BAT0 | |
adapter = ADP1 | |
poll-interval = 5 | |
time-format = %H:%M | |
format-charging = <animation-charging> <label-charging> | |
format-discharging = <ramp-capacity> <label-discharging> | |
label-charging = %percentage%% | |
label-discharging = %percentage%% | |
label-full = Fully charged | |
ramp-capacity-0 = | |
ramp-capacity-1 = | |
ramp-capacity-2 = | |
ramp-capacity-3 = | |
ramp-capacity-4 = | |
ramp-capacity-foreground = ${colors.foreground-alt} | |
bar-capacity-width = 10 | |
animation-charging-0 = | |
animation-charging-1 = | |
animation-charging-2 = | |
animation-charging-3 = | |
animation-charging-4 = | |
animation-charging-foreground = ${colors.foreground-alt} | |
animation-charging-framerate = 750 | |
[module/battery_1] | |
type = internal/battery | |
full-at = 99 | |
battery = BAT1 | |
adapter = ADP1 | |
poll-interval = 5 | |
time-format = %H:%M | |
format-charging = <animation-charging> <label-charging> | |
format-discharging = <ramp-capacity> <label-discharging> | |
label-charging = %percentage%% | |
label-discharging = %percentage%% | |
label-full = Fully charged | |
ramp-capacity-0 = | |
ramp-capacity-1 = | |
ramp-capacity-2 = | |
ramp-capacity-3 = | |
ramp-capacity-4 = | |
ramp-capacity-foreground = ${colors.foreground-alt} | |
bar-capacity-width = 10 | |
animation-charging-0 = | |
animation-charging-1 = | |
animation-charging-2 = | |
animation-charging-3 = | |
animation-charging-4 = | |
animation-charging-foreground = ${colors.foreground-alt} | |
animation-charging-framerate = 750 | |
[module/powermenu] | |
type = custom/menu | |
expand-right = true | |
format-spacing = 1 | |
label-open = | |
label-open-foreground = ${colors.foreground-alt} | |
label-close = cancel | |
label-close-foreground = ${colors.foreground-alt} | |
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 | |
[module/ewmh] | |
type = internal/xworkspaces | |
pin-workspaces = true | |
enable-click = true | |
enable-scroll = true | |
label-active = %name% | |
label-active-foreground = ${colors.foreground} | |
label-active-underline = ${colors.foreground} | |
label-active-background = ${colors.background} | |
label-active-padding = 1 | |
label-empty = %name% | |
label-empty-padding = 1 | |
[settings] | |
screenchange-reload = true | |
[global/wm] | |
margin-top = 5 | |
margin-bottom = 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment