nix-config/dots/bspwm/.config/polybar/config

144 lines
3.5 KiB
Plaintext
Raw Normal View History

2018-02-27 21:07:50 +01:00
# New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017-2018 Donovan Glover
2017-12-04 05:59:43 +01:00
[color]
background = ${xrdb:color0}
red = ${xrdb:color1}
green = ${xrdb:color2}
yellow = ${xrdb:color3}
blue = ${xrdb:color4}
magenta = ${xrdb:color5}
cyan = ${xrdb:color6}
text = ${xrdb:color7}
background-alt = ${xrdb:color8}
2017-12-04 05:59:43 +01:00
[bar/main]
2018-01-03 05:52:35 +01:00
modules-left = bspwm
modules-center = mpd
2017-12-04 05:59:43 +01:00
modules-right = cpu ram volume date time
monitor = VGA-1
foreground = ${color.text}
background = ${color.background}
2017-12-04 05:59:43 +01:00
font-0 = "Fira Mono:size=22"
font-1 = "Noto Sans CJK JP:size=22"
# NOTE: You may want to change height to 80 if you don't want float
# Also do a grep for 80 and change the other places as well
height = 85
2017-12-04 05:59:43 +01:00
padding-left = 2
padding-right = 2
module-margin = 1
border-color = 88FFFFFF
# Make the bar float
# NOTE: offset-x should be the same as window_gap in your bspwmrc
offset-x = 20
# NOTE: offset-y depends on window_gap as well; it's usually the same as offset-x
offset-y = 20
# NOTE: width = screen resolution - offset-x * 2
width = 3800
# NOTE: border-size should be the same as border_width in your bspwmrc
border-size = 3
line-size = 8
2017-12-04 05:59:43 +01:00
[bar/secondary]
modules-left = bspwm
modules-center = mpd
modules-right = cpu ram volume date time
monitor = VGA-1
foreground = ${color.text}
background = ${color.background}
font-0 = "Fira Mono:size=22"
font-1 = "Noto Sans CJK JP:size=22"
height = 80
padding-left = 2
padding-right = 2
module-margin = 1
border-color = ${color.background}
border-bottom-size = 0
line-size = 4
2018-01-03 05:52:35 +01:00
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
2017-12-04 05:59:43 +01:00
label-focused-foreground = ${color.green}
label-urgent-foreground = ${color.yellow}
label-occupied-foreground = ${color.text}
label-empty-foreground = ${color.background-alt}
2018-01-03 05:52:35 +01:00
label-focused-padding = 2
label-urgent-padding = 2
label-occupied-padding = 2
label-empty-padding = 2
2017-12-04 05:59:43 +01:00
label-focused-underline = ${color.green}
2017-12-04 05:59:43 +01:00
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;十
[module/cpu]
type = internal/cpu
label = CPU: %percentage%%
format-foreground = ${color.blue}
format-underline = ${color.blue}
2017-12-04 05:59:43 +01:00
[module/ram]
type = internal/memory
label = RAM: %gb_used%
format-foreground = ${color.cyan}
format-underline = ${color.cyan}
2017-12-04 05:59:43 +01:00
[module/date]
type = internal/date
date = %d.%m.%y
#date = %B %d, %Y
#date = %A
format-foreground = ${color.yellow}
format-underline = ${color.yellow}
2017-12-04 05:59:43 +01:00
[module/time]
type = internal/date
date = %H:%M
format-foreground = ${color.magenta}
format-underline = ${color.magenta}
2017-12-04 05:59:43 +01:00
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 98
label-full = %percentage%%
label-charging = %percentage%%
label-discharigng = %percentage%
[module/mpd]
type = internal/mpd
format-offline = No song is currently playing.
label-song-maxlen = 100
label-song-ellipsis = true
format-online = <label-song>
format-offline-foreground = ${color.cyan}
format-offline-underline = ${color.cyan}
format-online-foreground = ${color.cyan}
format-online-underline = ${color.cyan}
2017-12-04 05:59:43 +01:00
[module/volume]
type = internal/volume
label-volume = VOL: %percentage%%
format-volume-foreground = ${color.green}
format-volume-underline = ${color.green}
2017-12-04 05:59:43 +01:00
; vim:ft=dosini