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:color15}
16;bg = #901c2023
17bg = ${xrdb:color0}
18
19[bar/top]
20width = 100%
21height = 35
22offset-x = 0%
23offset-y= 0%
24fixed-center = true
25override-redirect = false
26
27
28background = ${colors.bg}
29foreground = ${colors.fg}
30
31font-0 = Roboto Mono:size=14:weight=Medium;3
32
33modules-left = date time volume battery music
34modules-center =
35modules-right = ewmh
36
37tray-position = false
38tray-padding = 0
39tray-background = ${colors.bg}
40tray-detached = false
41
42underline-size = 3
43
44spacing = 1
45padding-left = 1
46padding-right = 1
47module-margin-left = 2
48module-margin-right = 2
49
50[module/volume]
51type = custom/script
52interval = 0.01
53exec = ~/bin/vol.sh -q
54scroll-up = ~/bin/vol.sh -i
55scroll-down = ~/bin/vol.sh -d
56
57[module/xwindow]
58type = internal/xwindow
59label = %title:0:30:...%
60format-prefix = " "
61format-prefix-foreground = ${xrdb:color6}
62module-margin-left = 2
63format-padding = 2
64format-background = ${colors.bg}
65
66[module/ewmh]
67type = internal/xworkspaces
68pin-workspaces = true
69enable-scroll = true
70
71format = <label-state>
72
73label-active = ×
74label-active-foreground = ${colors.fg}
75label-active-background = ${colors.bg}
76label-active-padding = 1
77
78label-empty = •
79label-empty-foreground = ${colors.fg}
80label-empty-background = ${colors.bg}
81label-empty-padding = 1
82
83label-urgent = !
84label-urgent-foreground = #EC5f67
85label-urgent-background = ${colors.bg}
86label-urgent-padding = 1
87
88[module/date]
89type = custom/script
90interval = 1.0
91exec = ~/bin/time.sh -d
92
93[module/time]
94type = custom/script
95interval = 1.0
96exec = ~/bin/time.sh -t
97
98[module/battery]
99type = custom/script
100interval = 1.0
101exec = ~/bin/bat.sh
102
103[module/music]
104type = custom/script
105interval = 1.0
106exec = ~/bin/np.sh
107
108[module/spotipy]
109type = custom/script
110exec = ~/scripts/spoti.py
111exec-if = pgrep spotify > /dev/null
112interval = 0.01
113click-left = playerctl -p spotify play-pause
114
115; vim:ft=dosini