blob: 04d280549389e4d1e2dfe1139b8b1a732f60eeee (
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
184
185
186
187
188
189
190
|
;==========================================================
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;==========================================================
[colors]
background = #cc191724
background_modules = #cce0def4
foreground = #e0def4
foreground_modules = #1f1d2e
red = #eb6f92
green = #9ccfd8
sold_out_green = #1DB954
yellow = #f6c177
blue = #31748f
purple = #ebbcba
pink = #c4a7e7
[bar/top]
monitor = VGA-1
width = 100%
height = 20
offset-x = 0
offset-y = 0
radius = 0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
border-top-size = 0
border-bottom-size = 0
border-top-color = ${colors.background}
border-bottom-color = ${colors.background}
padding = 2
module-margin = 1
font-0 = scientifica:antialias=false;1
font-1 = Siji:size=20;1
modules-left = i3 pulseaudio-control spotify
modules-center = xwindow
modules-right = focus date time
tray-position = right
[module/focus]
type = custom/script
exec = ~/.config/polybar/focus
interval = 10
[module/spotify]
type = custom/script
interval = 1
format-prefix = ""
format-prefix-padding = 1
format-prefix-background = ${colors.sold_out_green}
format-prefix-foreground = ${colors.foreground}
format = <label>
format-padding = 0
exec = python /usr/share/polybar/scripts/spotify_status.py -f '{play_pause} {artist} - {song}' -p ', '
;契
[module/xwindow]
type = internal/xwindow
format = <label>
label = %title:0:70:...%
y-offset = 10
label-padding = 1
; there is a archlinux logo below
label-empty =
label-empty-padding = 5
[module/i3]
type = internal/i3
format = <label-state>
index-sort = true
wrapping-scroll = false
strip-wsnumbers = true
ws-icon-default =
ws-icon-0 = 0;
ws-icon-1 = 1;
ws-icon-2 = 2;
ws-icon-3 = 3;
ws-icon-4 = 4;
ws-icon-5 = 5;
ws-icon-6 = 6;
ws-icon-7 = 7;
ws-icon-8 = 8;
ws-icon-9 = 9;
ws-icon-10 = zotero;
ws-icon-11 = desktop;
ws-icon-12 = browser;
label-mode-background = ${colors.background_modules}
label-mode-foreground = ${colors.foreground_modules}
label-mode-padding = 2
label-focused = %icon%
label-focused-background = ${colors.blue}
label-focused-foreground = ${colors.background_modules}
label-focused-padding = 1
label-unfocused = %icon%
label-unfocused-background = ${colors.background_modules}
label-unfocused-foreground = ${colors.foreground_modules}
label-unfocused-padding = 1
label-visible = %icon%
label-visible-background = ${colors.background_modules}
label-visible-foreground = ${colors.foreground_modules}
label-visible-padding = 1
label-urgent = %icon%
label-urgent-background = ${colors.red}
label-urgent-foreground = ${colors.background}
label-urgent-padding = 1
[module/date]
type = internal/date
interval = 1
date = %Y-%m-%d %A
label = %date%
format = <label>
format-prefix =
format-prefix-background = ${colors.pink}
format-prefix-foreground = ${colors.foreground}
format-prefix-padding = 1
label-background = ${colors.background_modules}
label-foreground = ${colors.foreground_modules}
label-padding = 1
[module/time]
type = internal/date
interval = 1
time = %H:%M
label = %time%
format = <label>
format-prefix =
format-prefix-background = ${colors.blue}
format-prefix-foreground = ${colors.foreground}
format-prefix-padding = 1
label-background = ${colors.background_modules}
label-foreground = ${colors.foreground_modules}
label-padding = 1
[module/pulseaudio-control]
type = custom/script
tail = true
label = %output%
interval = 5
exec = ~/.config/polybar/pulseaudio-control.sh --listen
click-right = exec pavucontrol &
click-left = ~/.config/polybar/pulseaudio-control.sh --togmute
click-middle = ~/.config/polybar/pulseaudio-control.sh --change
scroll-up = ~/.config/polybar/pulseaudio-control.sh --up
scroll-down = ~/.config/polybar/pulseaudio-control.sh --down
label-padding = 2
label-foreground = ${colors.foreground_modules}
label-background = ${colors.background_modules}
[settings]
screenchange-reload = true
compositing-background = source
compositing-foreground = source
compositing-border = over
pseudo-transparency = false
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini
|