mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-16 05:13:11 +01:00
b9ea57bc2d
Since padding-left and padding-right will always be the same in this case, I've gone ahead and made it simply "padding". Since keys can use the values from other keys, some duplication in the module sections can be avoided.
133 lines
4.5 KiB
INI
133 lines
4.5 KiB
INI
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
|
# Copyright (C) 2017-2018 Donovan Glover
|
|
|
|
[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}
|
|
|
|
[bar/main]
|
|
modules-left = bspwm
|
|
modules-center = mpd
|
|
modules-right = cpu ram volume date time
|
|
|
|
monitor = VGA-1
|
|
wm-restack = bspwm
|
|
include-file = $HOME/.cache/polybar/config
|
|
|
|
foreground = ${color.text}
|
|
background = ${color.background}
|
|
border-color = ${color.text}
|
|
|
|
font-0 = "Fira Mono:style=Bold:size=19"
|
|
font-1 = "Noto Sans CJK JP:size=19"
|
|
font-2 = "Font Awesome 5 Free:style=Solid:size=19"
|
|
font-3 = "Font Awesome 5 Free:style=Regular:size=19"
|
|
font-4 = "Font Awesome 5 Brands:style=Regular:size=19"
|
|
|
|
padding = 2
|
|
module-margin = 1
|
|
|
|
[module/bspwm]
|
|
type = internal/bspwm
|
|
pin-workspaces = true
|
|
format = <label-mode> <label-state>
|
|
|
|
label-monocle = monocle mode
|
|
label-locked = Locked
|
|
label-private = Private
|
|
label-sticky = Sticky
|
|
|
|
label-monocle-padding = 1
|
|
label-locked-padding = 1
|
|
label-private-padding = 1
|
|
label-sticky-padding = 1
|
|
|
|
label-monocle-foreground = ${color.yellow}
|
|
label-locked-foreground = ${color.background-alt}
|
|
label-private-foreground = ${color.background-alt}
|
|
label-sticky-foreground = ${color.background-alt}
|
|
|
|
label-focused-padding = 2
|
|
label-urgent-padding = 2
|
|
label-occupied-padding = 2
|
|
label-empty-padding = 2
|
|
|
|
label-focused-foreground = ${color.text}
|
|
label-urgent-foreground = ${color.yellow}
|
|
label-occupied-foreground = ${color.background-alt}
|
|
label-empty-foreground = ${color.green}
|
|
|
|
label-focused-underline = ${color.text}
|
|
|
|
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 = %percentage%%
|
|
format-foreground = ${color.background-alt}
|
|
format-underline = ${self.format-foreground}
|
|
|
|
[module/ram]
|
|
type = internal/memory
|
|
label = %gb_used%
|
|
format-foreground = ${color.background-alt}
|
|
format-underline = ${self.format-foreground}
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
date = %d.%m.%y
|
|
#date = %B %d, %Y
|
|
#date = %A
|
|
format-foreground = ${color.background-alt}
|
|
format-underline = ${self.format-foreground}
|
|
|
|
[module/time]
|
|
type = internal/date
|
|
date = %H:%M
|
|
format-foreground = ${color.background-alt}
|
|
format-underline = ${self.format-foreground}
|
|
|
|
[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.background-alt}
|
|
format-offline-underline = ${self.format-offline-foreground}
|
|
format-online-foreground = ${color.background-alt}
|
|
format-online-underline = ${self.format-online-foreground}
|
|
|
|
[module/volume]
|
|
type = internal/alsa
|
|
label-volume = %percentage%%
|
|
format-volume-foreground = ${color.background-alt}
|
|
format-volume-underline = ${self.format-volume-foreground}
|
|
|
|
; vim:ft=dosini
|