Skip to content

Instantly share code, notes, and snippets.

@ghifarit53
Last active August 2, 2020 20:59
Show Gist options
  • Save ghifarit53/f828955c2a34283a04a132000d2545ff to your computer and use it in GitHub Desktop.
Save ghifarit53/f828955c2a34283a04a132000d2545ff to your computer and use it in GitHub Desktop.
polaroid-styled bar

polaroid-styled bar

[colors]
black = #fafafa
red = #e0311e
orange = #f98e00
yellow = #eeb301
green = #038b43
blue = #028fd6
white = #191a1c
[bar/mainbar]
monitor = "eDP-1"
background = ${colors.black}
foreground = ${colors.white}
font-0 = Inter:style=Medium:size=10;3
font-1 = Font Awesome 5 Free Solid:size=12;3
bottom = true
radius = 10
width = 450
height = 40
padding-left = 4
wm-restack = bspwm
modules-left = pol_red pol_or pol_yel pol_gre pol_blu space mpd
modules-right = time space scrot
offset-x = 20
offset-y = 15
[module/space]
type = custom/text
content = " "
[module/pol_red]
type = custom/text
content = " "
content-background = ${colors.red}
[module/pol_or]
type = custom/text
content = " "
content-background = ${colors.orange}
[module/pol_yel]
type = custom/text
content = " "
content-background = ${colors.yellow}
[module/pol_gre]
type = custom/text
content = " "
content-background = ${colors.green}
[module/pol_blu]
type = custom/text
content = " "
content-background = ${colors.blue}
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
format-online = <label-song>
format-playing = ${self.format-online}
format-paused = ${self.format-online}
format-stopped = ${self.format-online}
format-offline = ${self.label-offline}
label-song = "%title%"
label-offline = "Offline"
[module/time]
type = internal/date
date = "%H:%M"
[module/scrot]
type = custom/text
content = "  "
content-background = ${colors.red}
content-foreground = ${colors.black}
click-left = scrot ~/screenshots/%Y-%m-%d_%H.%M.%S.png
click-middle = scrot -s ~/screenshots/%Y-%m-%d_%H.%M.%S.png
click-right = scrot --focused --border ~/screenshots/%Y-%m-%d_%H.%M.%S.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment