Skip to content

Instantly share code, notes, and snippets.

@j1ah0ng
Created December 16, 2019 05:00
Show Gist options
  • Save j1ah0ng/309e9e7436dfc72cbeaeeefcff1ef055 to your computer and use it in GitHub Desktop.
Save j1ah0ng/309e9e7436dfc72cbeaeeefcff1ef055 to your computer and use it in GitHub Desktop.
polybar-config
[bar/white]
;------------;
; DIMENSIONS ;
;------------;
width = 100%
height = 20
offset-y = 0
offset-x = 0
border-top-size = 12
border-bottom-size = 0
border-right-size = 15
border-left-size = 15
;----------;
; LOCATION ;
;----------;
bottom = false
override-redirect = false
monitor = ${env:MONITOR:eDP1}
;-------;
; FONTS ;
;-------;
font-0 = "IBM Plex Sans Text:style=Text:pixelsize=12;3"
font-1 = "Font Awesome 5 Free:style=Solid:pixelsize=12;3"
font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=12;3"
font-3 = "Font Awesome 5 Brands:style=Regular:pixelsize=12;3"
;--------;
; COLORS ;
;--------;
background = 0
foreground = #d8dee9
border-color = 0
;---------------;
; MISCELLANEOUS ;
;---------------;
fixed-center = true
padding-left = 2
padding-right = 2
module-margin = 1.5
modules-left = player volume backlight battery
modules-center = i3
modules-right = cpu disk wlan ethlocal ethdock date time
tray-position = none
tray-detached = true
enable-ipc = true
;--------------------------------------------------
;---------;
; MODULES ;
;---------;
[module/i3]
type = internal/i3
pin-workspaces = true
strip-wsnumbers = true
enable-scroll = false
label-unfocused-foreground = #d8dee9
label-focused-foreground = #88d0c0
label-visible-foreground = #88d0c0
label-urgent-foreground = #bf616a
[module/time]
type = internal/date
interval = 1.0
date =  %H:%M:%S
[module/date]
type = internal/date
date =  %A %Y.%m.%d
label = %date%
[module/disk]
type = internal/fs
mount-0 = /
interval = 1
fixed-values = true
label-mounted =  %free%
format-mounted = <label-mounted>
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
time-format = %H:%M
poll-interval = 1
full-at = 93
label-muted-foreground = #bf616a
label-discharging = %percentage%% %time% %consumption%W
label-charging = %percentage%% %time% %consumption%W
label-full = %percentage%% %time% %consumption%W
format-discharging = <ramp-capacity> <label-discharging>
format-full = <ramp-capacity> <label-full>
format-charging =  <label-charging>
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
[module/volume]
type = internal/pulseaudio
use-ui-max = true
format-volume = <ramp-volume> <label-volume>
format-muted =  0%
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
[module/backlight]
type = internal/backlight
; Use the following command to list available cards:
; $ ls -1 /sys/class/backlight/
card = intel_backlight
format = <ramp> <label>
label = %percentage%%
ramp-0 = 
ramp-1 = 
ramp-2 = 
[module/cpu]
type = custom/script
exec = /home/sushisharkjl/.config/polybar/system-cpu-loadavg.sh
interval = 1
[module/memory]
type = internal/memory
label =  %gb_used%
[module/wlan]
type = internal/network
interface = wlp2s0
label-connected = %{A1:wicd-gtk &:} %ifname%: %essid% (%local_ip%, %signal%)%{A}
label-connected-foreground = #a3be8c
label-disconnected = %{A1:wicd-gtk &:} %{A}
label-disconnected-foreground = #bf616a
[module/ethlocal]
type = internal/network
interface = enp0s31f6
label-connected = %{A1:wicd-gtk &:} %ifname%: (%local_ip%)%{A}
label-connected-foreground = #a3be8c
label-disconnected = %{A1:wicd-gtk &:} %{A}
label-disconnected-foreground = #bf616a
[module/ethdock]
type = internal/network
interface = enx309c23f30735
label-connected = %{A1:wicd-gtk &:} %ifname%: (%local_ip%)%{A}
label-connected-foreground = #a3be8c
label-disconnected =
label-disconnected-foreground = #bf616a
[module/player]
type = custom/script
;exec = /home/sushisharkjl/.config/polybar/player-mpris-tail.py -f ' {:artist:t18:{artist}:}{:artist: - :}{:t20:{title}:} %{A1:playerctl previous:}  %{A} %{A1:playerctl play-pause:} {icon-reversed} %{A} %{A1:playerctl next:}  %{A}' --icon-playing ' ' --icon-paused ' ' --icon-stopped ' '
exec = /home/sushisharkjl/.config/polybar/player-mpris-tail.py -f '%{A2:playerctl stop:}%{A1:playerctl play-pause:}%{A6:playerctl previous:}%{A8:playerctl next:}{icon-reversed} {:artist:t18:{artist}:}{:artist: - :}{:t20:{title}:}%{A}%{A}%{A}%{A}' --icon-playing ' ' --icon-paused ' ' --icon-stopped ' '
tail = true
; vim:ft=dosini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment