Skip to content

Instantly share code, notes, and snippets.

@ohmeqwertreysd
Forked from onimenotsuki/polybar.conf
Created July 25, 2020 07:36
Show Gist options
  • Save ohmeqwertreysd/b2aa06cc96b2fa7a6b31d67c3215d979 to your computer and use it in GitHub Desktop.
Save ohmeqwertreysd/b2aa06cc96b2fa7a6b31d67c3215d979 to your computer and use it in GitHub Desktop.
Polybar configuration for two displays
[colors]
accent = #fba922
[bar/top]
enable-ipc = true
monitor = LVDS
width = 100%
height = 27
;background = #222
background = #a61f1f1f
foreground = #eee
border-bottom = none
border-bottom-color = ${self.background}
overline-size = 3
overline-color = ${self.background}
underline-size = 3
underline-color = ${self.background}
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 6
font-0 = NotoSans-Regular:size=8;0
font-1 = Unifont:size=5;0
font-2 = FontAwesome:size=8;0
font-3 = NotoSans-Regular:size=8;-1
font-4 = Unifont:size=5;0
font-5 = Termsynu:size=7;0
modules-left = i3
modules-center = light memory cpu
modules-right = volume temperature wireless-network wired-network battery clock
wm-restack = i3
tray-position = right
tray-transparent = false
tray-background = #29ABDA
tray-detached = false
tray-padding = 5
tray-maxsize = 13
[bar/external2]
enable-ipc = true
monitor = CRT1
width = 100%
height = 27
;background = #222
background = #a61f1f1f
foreground = #eee
border-bottom = none
border-bottom-color = ${self.background}
overline-size = 3
overline-color = ${self.background}
underline-size = 3
underline-color = ${self.background}
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 6
font-0 = NotoSans-Regular:size=8;0
font-1 = Unifont:size=5;0
font-2 = FontAwesome:size=8;0
font-3 = NotoSans-Regular:size=8;-1
font-4 = Unifont:size=5;0
font-5 = Termsynu:size=7;0
modules-left = i3
modules-center = light memory cpu
modules-right = volume temperature wireless-network wired-network battery clock
wm-restack = i3
[bar/external]
enable-ipc = true
monitor = DFP1
width = 100%
height = 27
offset-x = 10
offset-y = 13
;background = #222
background = #a61f1f1f
foreground = #eee
border-bottom = none
border-bottom-color = ${self.background}
overline-size = 3
overline-color = ${self.background}
underline-size = 3
underline-color = ${self.background}
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 6
font-0 = NotoSans-Regular:size=8;0
font-1 = Unifont:size=5;0
font-2 = FontAwesome:size=8;0
font-3 = NotoSans-Regular:size=8;-1
font-4 = Unifont:size=5;0
font-5 = Termsynu:size=7;0
modules-left = i3 mpd
modules-center = xwindow
modules-right = temperature memory cpu light battery clock
wm-restack = i3
[module/fs-root]
type = internal/fs
mount-0 = /
label-mounted = " %percentage_used%%"
[module/fs-home]
type = internal/fs
mount-0 = /home
label-mounted = " %percentage_used%%"
[module/light]
type = internal/backlight
card = acpi_video0
label = %percentage%%
; output = LVDS
format = "<label> <ramp><bar>"
ramp-0 = 
ramp-0-foreground = #666
ramp-1 = 
ramp-1-foreground = #999
ramp-2 = 
ramp-2-foreground = #fff
bar-width = 12
bar-indicator = |
bar-indicator-font = 6
bar-indicator-foreground = #fff
bar-fill = ─
bar-fill-font = 6
bar-fill-foreground = #fff
bar-empty = ─
bar-empty-font = 6
bar-empty-foreground = #444
enable-scroll = true
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
pin-workspaces = true
label-dimmed-underline = ${root.background}
label-focused = %icon% %name%
label-focused-foreground = #000
; label-focused-background = #3f3f3fd
; label-focused-background = #3f3f3fd
label-focused-background = #8ac4ff
; label-focused-underline = ${colors.accent}
; label-focused-underline = #29ABDA
; label-focused-underline = #8ac4ff
; label-focused-overline = #8ac4ff
label-focused-font = 4
label-focused-padding = 4
label-unfocused = %icon% %name%
; label-unfocused-underline = #555555
label-unfocused-font = 4
label-unfocused-padding = 2
label-urgent = %icon% %name%
label-urgent-foreground = ${self.label-focused-foreground}
label-urgent-background = ${self.label-focused-background}
label-urgent-underline = ${module/powermenu.format-background}
label-urgent-font = 4
label-urgent-padding = 4
label-visible = %icon% %name%
label-visible-foreground = #55ffffff
label-visible-font = 4
label-visible-padding = 4
enable-click = true
[module/cpu]
type = internal/cpu
interval = 0.5
format = <label> <ramp-coreload>
label = "CPU "
ramp-coreload-0 = ▁
ramp-coreload-0-font = 2
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 = ▂
ramp-coreload-1-font = 2
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 = ▃
ramp-coreload-2-font = 2
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 = ▄
ramp-coreload-3-font = 2
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 = ▅
ramp-coreload-4-font = 2
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 = ▆
ramp-coreload-5-font = 2
ramp-coreload-5-foreground = #fba922
ramp-coreload-6 = ▇
ramp-coreload-6-font = 2
ramp-coreload-6-foreground = #ff5555
ramp-coreload-7 = █
ramp-coreload-7-font = 2
ramp-coreload-7-foreground = #ff5555
[module/memory]
type = internal/memory
format = <label> <bar-used>
label = "RAM "
bar-used-width = 30
bar-used-foreground-0 = #aaff77
bar-used-foreground-1 = #aaff77
bar-used-foreground-2 = #fba922
bar-used-foreground-3 = #ff5555
bar-used-indicator = |
bar-used-indicator-font = 6
bar-used-indicator-foreground = #ff
bar-used-fill = ─
bar-used-fill-font = 6
bar-used-empty = ─
bar-used-empty-font = 6
bar-used-empty-foreground = #444444
[module/wireless-network]
type = internal/network
interface = wlp5s0
interval = 2.0
ping-interval = 10
format-connected = <ramp-signal> <label-connected>
label-connected = %essid%
label-disconnected = " not connected"
label-disconnected-foreground = #66
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
animation-packetloss-0 = 
animation-packetloss-0-foreground = #ffa64c
animation-packetloss-1 = 
animation-packetloss-1-foreground = ${bar/top.foreground}
animation-packetloss-framerate = 500
[module/wired-network]
type = internal/network
interface = enp1s0f
interval = 2.0
label-connected =  %local_ip%
label-disconnected = Ethernet disconnected
label-disconnected-foreground = #66
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
format-online = <bar-progress> <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
format-online-overline = ${root.background}
format-online-underline = ${root.background}
format-offline = <label-offline>
label-offline =
icon-play = "  "
icon-pause = "  "
icon-stop = "  "
icon-prev = "  "
icon-next = "  "
icon-random = "  "
icon-repeat = "  "
toggle-on-foreground =
toggle-off-foreground = #55
bar-progress-width = 10
bar-progress-format = %{+o +u}%fill%%{-o -u}%indicator%%{+o +u}%empty%%{-u -o}
; bar-progress-indicator = |
bar-progress-indicator = █
bar-progress-indicator-foreground = #ff
bar-progress-indicator-font = 3
; bar-progress-fill = ─
bar-progress-fill = █
bar-progress-fill-foreground = #bb
bar-progress-fill-font = 3
; bar-progress-empty = ─
bar-progress-empty = ▒
bar-progress-empty-font = 3
bar-progress-empty-foreground = #44
[module/clock]
type = internal/date
interval = 5
format-padding = 5
; format-background = #29ABDA
format-background = #8ac4ff
; format-foreground = #fff
format-foreground = #232043
date = " %A, %d %B  %H:%M"
date-alt = %%{F#fff}%A, %d %B %Y %%{F#fff}%H:%M%%{F#666}:%%{F#fba922}%S%%{F-}
[module/volume]
type = internal/volume
master-mixer = Master
mapping = true
master-soundcard = default
speaker-soundcard = default
headphone-soundcard = default
speaker-mixer = Speaker
headphone-mixer = Headphone
headphone-id = 9
format-volume = "<ramp-volume> <label-volume>"
label-volume = "%percentage%%"
label-volume-foreground = #fff
format-muted-prefix = " "
format-muted-foreground = #66
label-muted = sound muted
label-muted-foreground = #99ffffff
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-3 = 
ramp-volume-foreground = #9f78e1
ramp-headphones-0 = 
ramp-headphones-1 = 
ramp-headphones-foreground = #9f78e1
[module/battery]
type = internal/battery
full-at = 98
format-charging = "<label-charging> <animation-charging>"
format-discharging = "<label-discharging> <ramp-capacity>"
format-full = " <label-full> <ramp-capacity>"
ramp-capacity-0 = 
ramp-capacity-0-foreground = #f53c3c
ramp-capacity-1 = 
ramp-capacity-1-foreground = #ffa900
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
bar-capacity-width = 10
bar-capacity-format = %{+u}%{+o}%fill%%empty%%{-u}%{-o}
bar-capacity-fill = █
bar-capacity-fill-foreground = #ddffffff
bar-capacity-fill-font = 3
bar-capacity-empty = █
bar-capacity-empty-font = 3
bar-capacity-empty-foreground = #44ffffff
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-framerate = 750
[module/xwindow]
type = internal/xwindow
label-maxlen = 75
label = " %title%"
label-foreground = #fff
; label-underline = ${module/clock.format-background}
; label-underline = #DDD
; label-underline = #d8dfbc
label-underline = #8ac4ff
label-padding = 4
[module/powermenu]
type = custom/menu
format-padding = 3
format-background = #a61f1f1f
format-foreground = #fff
label-open = 
label-close = 
label-separator = " - "
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 = Accept
menu-1-1-exec = reboot
menu-2-0 = Accept
menu-2-0-exec = poweroff
menu-2-1 = Cancel
menu-2-1-exec = menu-open-0
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = "<ramp> <label>"
; format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-foreground = ${module/powermenu.format-background}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = #F3F3BA
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = #F3F3BA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment