Skip to content

Instantly share code, notes, and snippets.

@molarmanful
Created April 12, 2017 13:30
Show Gist options
  • Save molarmanful/36ca5da1519a8641ac8f912acd42d1e6 to your computer and use it in GitHub Desktop.
Save molarmanful/36ca5da1519a8641ac8f912acd42d1e6 to your computer and use it in GitHub Desktop.
! If you decide to use the music module, get https://github.com/mooow/mooowscripts/blob/master/uscripts/playerctl-cmus and put the script in your $PATH.
[colors]
background = ${xrdb:background}
foreground = ${xrdb:foreground}
black = ${xrdb:color0}
red = ${xrdb:color1}
green = ${xrdb:color2}
yellow = ${xrdb:color3}
blue = ${xrdb:color4}
magenta = ${xrdb:color5}
cyan = ${xrdb:color6}
white = ${xrdb:color7}
[bar/top]
width = 98%
height = 50
offset-x = 1%
offset-y = 1%
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 1
border-color = ${colors.foreground}
padding-left = 6
padding-right = 6
module-margin-left = 2
module-margin-right = 4
font-0 = FontAwesome:size=15;0
font-1 = mononoki:size=15;0
font-2 = Droid Sans Fallback:size=15;1
font-3 = Wuncon Siji:size=15;2
font-4 = unifont:size=15;3
modules-left = xwindow
modules-center = bspwm
modules-right = music volume xbacklight battery wlan date
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 40
format-underline = ${colors.black}
[module/bspwm]
type = internal/bspwm
ws-icon-0 = 1;Ⅰ
ws-icon-1 = 2;Ⅱ
ws-icon-2 = 3;Ⅲ
ws-icon-3 = 4;Ⅳ
ws-icon-4 = 5;Ⅴ
ws-icon-5 = 6;Ⅵ
ws-icon-6 = 7;Ⅶ
ws-icon-7 = 8;Ⅷ
ws-icon-8 = 9;Ⅸ
ws-icon-9 = 10;Ⅹ
ws-icon-default = 0
label-focused = %icon%
label-focused-background = ${colors.background}
label-focused-underline= ${colors.yellow}
label-focused-padding = 2
label-occupied = %icon%
label-occupied-padding = 2
label-urgent = %icon%!
label-urgent-background = ${colors.red}
label-urgent-padding = 2
label-empty = %icon%
label-empty-foreground = ${colors.blue}
label-empty-padding = 2
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 25
label-song-ellipsis = true
[module/xbacklight]
type = internal/xbacklight
format =  <bar>
bar-width = 10
bar-indicator = |
bar-indicator-foreground = ${colors.foreground}
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = ${colors.yellow}
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.black}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-underline = ${colors.green}
label = %percentage%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-underline = ${colors.red}
label = %percentage_used%%
[module/wlan]
type = internal/network
interface = wlp2s0
interval = 3.0
format-connected =  <label-connected>
format-connected-underline = ${colors.magenta}
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
[module/date]
type = internal/date
interval = 5
date =
date-alt = " %m/%d/%Y"
time = " %H:%M"
time-alt =
format-prefix = 
format-underline = ${colors.cyan}
label = %date% %time%
[module/volume]
type = internal/volume
format-volume = <ramp-volume> <bar-volume>
label-volume-foreground = ${colors.foreground}
format-muted-foreground = ${colors.red}
label-muted =  volume off
bar-volume-width = 10
bar-volume-foreground-0 = ${colors.green}
bar-volume-foreground-1 = ${colors.green}
bar-volume-foreground-2 = ${colors.green}
bar-volume-foreground-3 = ${colors.yellow}
bar-volume-foreground-4 = ${colors.yellow}
bar-volume-foreground-5 = ${colors.red}
bar-volume-foreground-6 = ${colors.red}
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.black}
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = ${colors.blue}
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " "
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-framerate_ms = 500
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = ${colors.yellow}
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.red}
ramp-0 = 
ramp-1 = 
ramp-2 = 
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 0
margin-bottom = 0
[module/music]
type = custom/script
exec = [[ $(playerctl-cmus status) && ! $(playerctl-cmus status) =~ "stopped" ]] && echo " $(playerctl-cmus metadata title)" || echo ""
tail = true
interval = 1
format-underline = ${colors.green}
; vim:ft=dosini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment