Skip to content

Instantly share code, notes, and snippets.

@alexozer
Created December 3, 2017 21:08
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 alexozer/c14426ff05c53f5907e8c99b3bee82b5 to your computer and use it in GitHub Desktop.
Save alexozer/c14426ff05c53f5907e8c99b3bee82b5 to your computer and use it in GitHub Desktop.
; Dracula theme
[colors]
background = #282a36
current-line = #44475a
selection = #44475a
foreground = #f8f8f2
comment = #6272a4
cyan = #8be9fd
green = #50fa7b
orange = #ffb86c
pink = #ff79c6
purple = #bd93f9
red = #ff5555
yellow = #f1fa8c
[bar/top]
bottom = false
width = 100%
height = 28
offset-x = 0
offset-y = 0
module-margin-left = 0
module-margin-right = 6
; Transparent dracula background
background = #7F282a36
foreground = ${colors.comment}
line-size = 3
line-color = ${colors.purple}
border-size = 0
font-0 = NotoSans-Regular:size=14;2
font-1 = fontawesome:pixelsize=16;2
wm-name = BSPWM
tray-position = right
tray-maxsize = 24
tray-transparent = true
tray-background = #00000000
modules-right = music bspwm xbacklight volume battery wlan date time
[global/wm]
margin-stop = ${bar/top.height}
[module/date]
type = internal/date
date =  %A %d
[module/time]
type = internal/date
; The right separator doesn't seem to apply to the panel, so add it in the date format
date = " %I:%M "
[module/bspwm]
type = internal/bspwm
enable-click = false
enable-scroll = false
format = <label-mode> <label-state>
label-monocle = 
label-focused = %index%
label-focused-foreground = ${colors.foreground}
label-focused-underline = ${colors.purple}
label-focused-background = ${colors.selection}
label-focused-padding = 2
label-occupied = %index%
label-occupied-foreground = ${colors.foreground}
label-occupied-padding = 2
label-urgent = %index%!
label-urgent-background = ${colors.orange}
label-urgent-padding = 2
label-empty = %index%
label-empty-padding = 2
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = 
format-muted = <label-muted> <bar-volume>
label-muted = 
format-muted-foreground = ${colors.comment}
bar-volume-width = 10
bar-volume-gradient = false
;bar-volume-indicator = |
bar-volume-indicator = |
bar-volume-fill = ─
bar-volume-empty = ${module/volume.bar-volume-fill}
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = 
bar-width = 10
bar-indicator = |
bar-fill = ─
bar-empty = ${module/xbacklight.bar-fill}
[module/wlan]
type = internal/network
interface = wlp3s0
format-connected = <label-connected>
label-connected =  %essid%
format-disconnected = <label-disconnected>
label-disconnected =  disconnected
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 95
time-format = %-H hr %-M min
; format-charging = <ramp-capacity> <label-charging>
; format-discharging = <ramp-capacity> <label-discharging>
;format-full = <ramp-capacity> <label-full>
format-charging = <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
label-charging =  %percentage%% %time%
label-discharging = %percentage%% %time%
label-full =  %percentage%%
ramp-capacity-0 = " "
ramp-capacity-0-foreground = ${colors.red}
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-3 = " "
ramp-capacity-4 = " "
; [module/music]
; type = custom/script
; exec = ~/.config/polybar/playerctl.py
;
; tail = true
; vim:ft=dosini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment