Skip to content

Instantly share code, notes, and snippets.

@0snap
Created October 25, 2019 14:03
Show Gist options
  • Save 0snap/ab2b5e6792350e6c0820f7b20ac9cd54 to your computer and use it in GitHub Desktop.
Save 0snap/ab2b5e6792350e6c0820f7b20ac9cd54 to your computer and use it in GitHub Desktop.
Polybar Configuration File
[bar/fixelbar]
monitor = ${env:MONITOR:eDP1}
width = 100%
height = 27
radius = 0
fixed-center = false
background = #1c1c22
foreground = #d9d6ca
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 = wlan eth cpu memory battery pulseaudio
modules-center = i3
modules-right = date powermenu
tray-position = right
tray-detached = false
;tray-maxsize = 200
tray-transparent = false
tray-background = ${root.background}
;tray-offset-x = 20
;tray-offset-y = 20
;tray-padding = 20
tray-scale = 1.0
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-foreground = #1c1c22
label-mode-background = #1c1c22
label-focused = %index%
label-focused-background = #3e646f
label-focused-foreground = #1c1c22
label-focused-padding = 2
label-unfocused = %index%
label-unfocused-background = #5c828d
label-unfocused-foreground = #1c1c22
label-unfocused-padding = 2
label-visible = %index%
label-visible-background = #5c828d
label-visible-foreground = #1c1c22
label-visible-padding = 2
label-urgent = %index%
label-urgent-background = #BA2922
label-urgent-padding = 2
pin-workspaces = true
[module/wlan]
type = internal/network
interface = wlp59s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-foreground = #1c1c22
format-connected-background = #5c828d
format-connected-padding = 2
label-connected = %essid%
format-disconnected =
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = #1c1c22
[module/eth]
type = internal/network
interface = enp0s31f6
interval = 3.0
format-connected-padding = 2
format-connected-foreground = #1c1c22
format-connected-background = #5c828d
format-connected-prefix = " "
format-connected-prefix-foreground = #1c1c22
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 = #1c1c22
format-background = #5c828d
format-padding = 2
label = %date% %time%
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = 
label-open-foreground = #5c828d
label-close =  cancel
label-close-foreground = #5c828d
label-separator = |
label-separator-foreground = #5c828d
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 = pkill -KILL -u $USER
menu-3-1 = cancel
menu-3-1-exec = menu-open-0
[module/cpu]
type = internal/cpu
interval = 0.5
; label = CPU %percentage-cores%
label = CPU %percentage%%
[module/battery]
type = internal/battery
; This is useful in case the battery never reports 100% charge
full-at = 100
; Use the following command to list batteries and adapters:
; $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC
poll-interval = 5
; UNIX date format, see "man date"
time-format = %H:%M
; %percentage% (default) / %time% / %consumption% (shows current dis/charge rate in watts)
label-charging = %percentage%% (%time%)
label-discharging = %percentage%% (%time%)
label-full = %percentage%
; <label-dis/charging> (default) / <bar-capacity> / <ramp-capacity> / <animation-discharging>
format-charging = <ramp-capacity> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full = <ramp-capacity> <label-full>
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
[module/memory]
type = internal/memory
label = RAM %gb_used% (%percentage_used%%)
interval = 3
[module/pulseaudio]
type = internal/pulseaudio
; `pacmd list-sinks`
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
use-ui-max = true
interval = 5
format-volume = Audio <label-volume>
label-muted = 🔇 muted
label-muted-foreground = #888
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment