config/polybar/bar (view raw)
1; __ __
2; ____ ____ / /_ __/ /_ ____ ______
3; / __ \/ __ \/ / / / / __ \/ __ `/ ___/
4; / /_/ / /_/ / / /_/ / /_/ / /_/ / /
5; / .___/\____/_/\__, /_.___/\__,_/_/
6;/_/ /____/
7;
8;
9
10[global/wm]
11;margin-top =
12;margin-bottom = 2
13
14[colors]
15fg = ${xrdb:color0}
16;fg = ${xrdb:color21}
17bg = #001b2b34
18;bg = ${xrdb:color0}
19
20[bar/top]
21width = 100%
22height = 30
23offset-x = 0%
24offset-y= 0%
25fixed-center = true
26override-redirect = false
27
28
29background = ${colors.bg}
30foreground = ${colors.fg}
31
32font-0 = SF Mono:size=12:weight=semibold;3
33
34modules-left = date time volume battery ewmh
35modules-center =
36modules-right = xwindow
37
38tray-position = false
39tray-padding = 0
40tray-background = ${colors.bg}
41tray-detached = false
42
43underline-size = 3
44
45spacing = 1
46padding-left = 1
47padding-right = 1
48module-margin-left = 2
49module-margin-right = 2
50
51[module/volume]
52type = internal/alsa
53
54format-volume = <label-volume>
55label-volume = vol %percentage%%
56module-margin-right = 1
57
58format-volume-background = ${colors.bg}
59label-muted = muted
60
61
62[module/xwindow]
63type = internal/xwindow
64label = %title:0:30:...%
65format-prefix = " "
66format-prefix-foreground = ${xrdb:color6}
67module-margin-left = 2
68format-padding = 2
69format-background = ${colors.bg}
70
71[module/ewmh]
72type = internal/xworkspaces
73pin-workspaces = true
74enable-scroll = true
75
76format = <label-state>
77
78label-active = ×
79label-active-foreground = ${xrdb:color6}
80label-active-background = ${colors.bg}
81label-active-padding = 1
82
83label-empty = •
84label-empty-foreground = ${colors.fg}
85label-empty-background = ${colors.bg}
86label-empty-padding = 1
87
88label-urgent = !
89label-urgent-foreground = #EC5f67
90label-urgent-background = ${colors.bg}
91label-urgent-padding = 1
92
93
94[module/date]
95type = internal/date
96interval = 1
97date = %a, %d %b
98format-prefix-foreground = ${xrdb:color6}
99
100[module/time]
101type = internal/date
102interval = 1
103date = %I:%M
104format-prefix-foreground = ${xrdb:color6}
105
106[module/battery]
107type = internal/battery
108full-at = 100
109battery = BAT0
110adapter = ACAD
111poll-interval = 5
112
113format-charging = <label-charging>
114format-discharging = <label-discharging>
115label-charging = bat+ %percentage%%
116label-charging-foreground = ${colors.fg}
117label-discharging = bat %percentage%%
118label-discharging-foreground = ${colors.fg}
119label-full = full!
120
121[module/spotipy]
122type = custom/script
123exec = ~/scripts/spoti.py
124exec-if = pgrep spotify > /dev/null
125interval = 0.01
126click-left = playerctl -p spotify play-pause
127
128; vim:ft=dosini