Skip to content

Instantly share code, notes, and snippets.

@vanokg
Last active June 3, 2020 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanokg/58d88039a207a9e4b05a4206cfd4c756 to your computer and use it in GitHub Desktop.
Save vanokg/58d88039a207a9e4b05a4206cfd4c756 to your computer and use it in GitHub Desktop.
Polybar config
[bar/i3wmthemer_bar]
width = 100%
height = 25
radius = 0
fixed-center = true
background = #1e1e20
foreground = #c5c8c6
line-size = 3
line-color =
border-size = 0
border-color =
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;1"
modules-left = i3 vpn-anyconnect-status external-ip
modules-center = date
modules-right = wlan eth pulseaudio battery powermenu
tray-position = right
;tray-padding =
wm-restack = i3
#override-redirect = true
cursor-click = pointer
cursor-scroll = ns-resize
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
label-mode-padding = 2
label-mode-background = #282a2e
label-mode-foreground = #c5c8c6
label-focused = %index%
label-focused-background = #131
label-focused-underline = #249824
label-focused-padding = 2
label-unfocused = %index%
label-unfocused-foreground = #999
label-unfocused-padding = 2
label-visible = %index%
label-visible-background = #201134
label-visible-underline = #A44BA0
label-visible-padding = 2
label-urgent = %index%
label-urgent-background = #311
label-urgent-underline = #D95B5B
label-urgent-padding = 2
[module/wlan]
type = internal/network
interface = wlan0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-padding = 2
label-connected = %essid% - %local_ip%
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = #c5c8c6
[module/eth]
type = internal/network
interface = eth0
interval = 3.0
format-connected-padding = 2
format-connected-foreground = #272827
format-connected-background = #7E807E
format-connected-prefix = " "
format-connected-prefix-foreground = #272827
label-connected = %local_ip%
format-disconnected =
[module/date]
type = internal/date
interval = 5
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-prefix = 
format-foreground = #c5c8c6
format-background = #282a2e
format-padding = 2
label = %date% %time%
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = 
label-open-foreground = #657b83
label-close =  cancel
label-close-foreground = #c5c8c6
label-separator = |
label-separator-foreground = #BA2922
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-0-2 = log off
menu-0-2-exec = menu-open-3
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = reboot
menu-2-0 = power off
menu-2-0-exec = poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
menu-3-0 = log off
menu-3-0-exec = i3 exit logout
menu-3-1 = cancel
menu-3-1-exec = menu-open-0
[module/keyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-indicator-padding = 2
label-indicator-margin = 1
[module/pulseaudio]
type = internal/pulseaudio
sink = alsa_output.pci-0000_12_00.3.analog-stereo
use-ui-max = true
interval = 3
format-volume = <ramp-volume> <label-volume>
label-muted =  %percentage%
label-muted-font = 3
label-muted-padding = 2
label-muted-foreground = #999
label-muted-underline = #999
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-headphones-0 = 
ramp-headphones-1 = 
click-right = pavucontrol &
ramp-volume-foreground = #00CF91
format-volume-underline = #00CF91
[module/battery]
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 = Full
format-discharging-foreground = #F7F272
format-charging-foreground = #77BD8B
format-discharging-underline = #F7F272
format-charging-underline = #77BD8B
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
bar-capacity-width = 10
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-framerate = 750
animation-discharging-0 = 
animation-discharging-1 = 
animation-discharging-2 = 
animation-discharging-3 = 
animation-discharging-4 = 
animation-discharging-framerate = 500
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 0
[module/vpn-anyconnect-status]
type = custom/script
exec = /usr/local/bin/vpn-networkmanager-status.sh
interval = 5
[module/external-ip]
type = custom/script
exec = /usr/local/bin/external.ip
interval = 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment