aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/config
blob: 84a2bb31c50f3b1fa98cd789544fc667b7d45a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[barsettings]
padding = 1.9

[global/wm]
margin-bottom = 50
margin-top = 0

[bar/main]

tray-position = right
tray-padding = ${barsettings.padding}
tray-background = ${color.bg}
tray-margin = 8

monitor =
monitor-fallback =
monitor-strict = false

override-redirect = false

bottom = false
fixed-center = true

width = 100%
height = 32
offset-x = 0
offset-y = 0

background = ${color.bg}
foreground = ${color.fg}

radius-top = 0.0
radius-bottom = 0.0

padding = 4

module-margin-left = 2
module-margin-right = 2

font-0 = "Product Sans:pixelsize=11:weight=regular:size=0;2"
font-1 = "Product Sans:pixelsize=11:weight=bold:size=0;2"
font-2 = "Material Design Icons:size=12;2"

modules-left = time date 
modules-center = weather mpd
modules-right = alsa whoami

separator =

spacing = 0

dim-value = 1.0

wm-name = 

locale = 

wm-restack = i3

enable-ipc = true

click-left = 
click-middle = 
click-right =
scroll-up =
scroll-down =
double-click-left =
double-click-middle =
double-click-right =

cursor-click = 
cursor-scroll = 

[settings]
throttle-output = 5
throttle-output-for = 10

throttle-input-for = 30

screenchange-reload = false

compositing-background = source
compositing-foreground = over
compositing-overline = over
compositing-underline = over
compositing-border = over

format-foreground = 
format-background = 
format-underline =
format-overline =
format-spacing =
format-padding =
format-margin =
format-offset =

pseudo-transparency = false

[color]

bg = #121213
fg = #fdf9f7
fg-alt = #121213

alpha = #00000000

[module/alsa]
type = internal/alsa

format-volume = <ramp-volume> <label-volume>
format-volume-background = ${color.bg}
format-volume-foreground = ${color.fg}
format-volume-padding = ${barsettings.padding}

label-volume = %percentage%%

format-muted-prefix = "󰖁 "
format-muted-background = ${color.fg}
format-muted-foreground = ${color.bg}
format-muted-padding = ${barsettings.padding}
label-muted = "Muted"

ramp-volume-0 = 󰕿
ramp-volume-1 = 󰖀
ramp-volume-2 = 󰕾

ramp-headphones-0 = 󰋋
ramp-headphones-1 = 󰟎

[module/date]
type = internal/date
interval = 1.0
time = 󰃭 %{T2}%A%{T-}, %B %d
format = <label>
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

label = %time%

[module/time]
type = internal/date
interval = 1.0
time = 󰥔 %{T2}%H:%M%{T-}
format = <label>
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

label = %time%

[module/mpd]
type = internal/mpd
format-online = 󰎇 <label-song>
format-offline = 

icon-play = 󰐊
icon-pause = 󰏤

label-song = %{T2}%artist%%{T-}: %title%
label-song-maxlen = 50
label-song-ellipsis = true

[module/weather]
type = custom/script
exec = ~/.config/polybar-forecast/target/release/polybar-forecast
interval = 120
exec-if = ping openweathermap.org -c 1
label-font = 2
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

[module/whoami]
type = custom/script
exec = echo "󰀄 %{T2}$(whoami)%{T-}@%{T2}$(hostname)%{T-}"
interval = 9999999
label-font = 2
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

; vim:ft=dosini