diff options
Diffstat (limited to 'polybar')
-rw-r--r-- | polybar/.config/polybar/config | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config new file mode 100644 index 0000000..b7cd3ce --- /dev/null +++ b/polybar/.config/polybar/config | |||
@@ -0,0 +1,234 @@ | |||
1 | ; ---------- global -------------- | ||
2 | |||
3 | [colors] | ||
4 | foreground = ${xrdb:color7} | ||
5 | foreground_bright = ${xrdb:color8} | ||
6 | background = ${xrdb:color0} | ||
7 | modb = ${xrdb:color11} | ||
8 | modb1 = ${xrdb:color0} | ||
9 | modb2 = ${xrdb:color0} | ||
10 | red = ${xrdb:color1} | ||
11 | orange = ${xrdb:color9} | ||
12 | yellow = ${xrdb:color3} | ||
13 | green = ${xrdb:color2} | ||
14 | cyan = ${xrdb:color6} | ||
15 | blue = ${xrdb:color4} | ||
16 | magenta = ${xrdb:color5} | ||
17 | brown = ${xrdb:color7} | ||
18 | |||
19 | [global/wm] | ||
20 | margin-top = 0 | ||
21 | margin-bottom = 0 | ||
22 | override-redirect = true | ||
23 | |||
24 | |||
25 | ; ------------ bars --------------- | ||
26 | |||
27 | [bar/time] | ||
28 | width = 400 | ||
29 | height = 70 | ||
30 | offset-x = 20 | ||
31 | offset-y = 1010 | ||
32 | locale = en_US.UTF-8 | ||
33 | background = #00FFFFFF | ||
34 | foreground = ${colors.foreground} | ||
35 | modules-left = time | ||
36 | modules-center = | ||
37 | modules-right = | ||
38 | padding = 0 | ||
39 | font-0 = undefined:size=18:antialias=true;0 | ||
40 | |||
41 | [bar/date] | ||
42 | width = 400 | ||
43 | height = 70 | ||
44 | offset-x = 20 | ||
45 | offset-y = 960 | ||
46 | locale = en_US.UTF-8 | ||
47 | background = #00FFFFFF | ||
48 | foreground = ${colors.foreground} | ||
49 | modules-left = date | ||
50 | modules-center = | ||
51 | modules-right = | ||
52 | padding = 0 | ||
53 | radius = 0 | ||
54 | font-0 = undefined:size=18:antialias=true;0 | ||
55 | font-1 = scientifica:size=18:antialias=true;0 | ||
56 | |||
57 | [bar/music] | ||
58 | width = 400 | ||
59 | height = 70 | ||
60 | offset-x = 20 | ||
61 | offset-y = 20 | ||
62 | locale = en_US.UTF-8 | ||
63 | background = #00FFFFFF | ||
64 | foreground = ${colors.foreground} | ||
65 | modules-left = cmusnp | ||
66 | modules-center = | ||
67 | modules-right = | ||
68 | padding = 0 | ||
69 | radius = 0 | ||
70 | font-0 = undefined:size=18:antialias=true;0 | ||
71 | font-1 = scientifica:size=18:antialias=true;0 | ||
72 | |||
73 | |||
74 | ; ---------- modules --------------- | ||
75 | |||
76 | [module/workspace] | ||
77 | type = custom/script | ||
78 | interval = 0.01 | ||
79 | exec = echo $(( $(xprop -root _NET_CURRENT_DESKTOP | sed -e 's/_NET_CURRENT_DESKTOP(CARDINAL) = //') + 1)) | ||
80 | format-padding = 2 | ||
81 | format-font = 1 | ||
82 | |||
83 | [module/date] | ||
84 | type = custom/script | ||
85 | interval = 1.0 | ||
86 | exec = /home/np/scripts/date.sh | ||
87 | format-prefix-foreground = ${colors.green} | ||
88 | format-padding = 0 | ||
89 | format-foreground = ${colors.foreground} | ||
90 | |||
91 | |||
92 | [module/time] | ||
93 | type = custom/script | ||
94 | interval = 1.0 | ||
95 | exec = echo "$(date +%p) $(date +%I:%M)" | ||
96 | format-prefix-foreground = ${colors.green} | ||
97 | format-padding = 0 | ||
98 | format-foreground = ${colors.foreground} | ||
99 | |||
100 | [module/music_pop] | ||
101 | type = custom/script | ||
102 | format-text = <label> | ||
103 | label = | ||
104 | interval = 1.0 | ||
105 | exec = echo label | ||
106 | click-left = /home/np/scripts/hidebars.sh -s | ||
107 | click-right = /home/np/scripts/hidebars.sh -h | ||
108 | format-padding = 1 | ||
109 | format-foreground = ${colors.foreground} | ||
110 | format-background = ${colors.background} | ||
111 | |||
112 | [module/previous] | ||
113 | type = custom/script | ||
114 | format-text = <label> | ||
115 | label = | ||
116 | exec = echo label | ||
117 | click-left = cmus-remote -r -p && ~/scripts/popups/cover.sh | ||
118 | click-right = wmctrl -s 5 | ||
119 | format-foreground = ${colors.green} | ||
120 | format-background = ${colors.background} | ||
121 | format-padding = 1 | ||
122 | |||
123 | [module/next] | ||
124 | type = custom/script | ||
125 | format-text = <label> | ||
126 | label = | ||
127 | exec = echo label | ||
128 | click-left = cmus-remote -n -p && ~/scripts/popups/cover.sh | ||
129 | click-right = wmctrl -s 5 | ||
130 | format-foreground = ${colors.green} | ||
131 | format-background = ${colors.background} | ||
132 | format-padding = 1 | ||
133 | |||
134 | [module/playpause] | ||
135 | type = custom/script | ||
136 | exec = exec ~/scripts/playpause.sh | ||
137 | click-left = cmus-remote -u | ||
138 | click-right = wmctrl -s 5 | ||
139 | interval = 1 | ||
140 | scroll-up = exec amixer sset Master 2%+ | ||
141 | scroll-down = exec amixer sset Master 2%- | ||
142 | format-foreground = ${colors.green} | ||
143 | format-background = ${colors.background} | ||
144 | format-padding = 1 | ||
145 | |||
146 | [module/2bws] | ||
147 | type = custom/script | ||
148 | exec = bash ~/scripts/2bws.sh | ||
149 | interval = 0.01 | ||
150 | format-padding = 3 | ||
151 | format-foreground = ${colors.background} | ||
152 | scroll-up = exec ~/scripts/wscycle.sh -f | ||
153 | scroll-down = exec ~/scripts/wscycle.sh -r | ||
154 | |||
155 | [module/bat] | ||
156 | type = custom/script | ||
157 | exec = ~/scripts/bat -i | ||
158 | interval = 100 | ||
159 | format-padding = 4 | ||
160 | format-background = ${colors.background} | ||
161 | format-foreground = ${colors.foreground} | ||
162 | |||
163 | [module/vol] | ||
164 | type = custom/script | ||
165 | exec = ~/scripts/vol -q | ||
166 | interval = 0.01 | ||
167 | format-padding = 2 | ||
168 | scroll-up = ~/scripts/vol -i | ||
169 | scroll-down = ~/scripts/vol -d | ||
170 | |||
171 | [module/net] | ||
172 | type = custom/script | ||
173 | exec = exec ~/scripts/netwrk.sh | ||
174 | interval = 5 | ||
175 | format-padding = 2 | ||
176 | format-background = ${colors.foreground} | ||
177 | click-left = urxvtc -g 50x22 -b 0 -e nmtui | ||
178 | |||
179 | [module/album] | ||
180 | type = custom/script | ||
181 | exec = ~/scripts/music.sh -b | ||
182 | interval = 2 | ||
183 | format-padding = 2 | ||
184 | click-left = cmus-remote -u | ||
185 | scroll-up = exec amixer sset Master 2%+ | ||
186 | scroll-down = exec amixer sset Master 2%- | ||
187 | |||
188 | [module/artist] | ||
189 | type = custom/script | ||
190 | exec = ~/scripts/music.sh -a | ||
191 | interval = 2 | ||
192 | format-padding = 2 | ||
193 | click-left = cmus-remote -u | ||
194 | scroll-up = exec amixer sset Master 2%+ | ||
195 | scroll-down = exec amixer sset Master 2%- | ||
196 | |||
197 | [module/track] | ||
198 | type = custom/script | ||
199 | exec = ~/scripts/music.sh -t | ||
200 | interval = 2 | ||
201 | format-padding = 2 | ||
202 | click-left = cmus-remote -u | ||
203 | scroll-up = exec amixer sset Master 2%+ | ||
204 | scroll-down = exec amixer sset Master 2%- | ||
205 | |||
206 | [module/cmusnp] | ||
207 | type = custom/script | ||
208 | interval = 0.1 | ||
209 | format-text = <label> | ||
210 | exec = bash ~/scripts/cmusnp.sh | ||
211 | click-left = cmus-remote -u | ||
212 | click-right = wmctrl -s 5 | ||
213 | scroll-up = exec amixer sset Master 2%+ | ||
214 | scroll-down = exec amixer sset Master 2%- | ||
215 | format-foreground = ${colors.foreground} | ||
216 | padding = 0 | ||
217 | |||
218 | [module/brit] | ||
219 | type = custom/script | ||
220 | exec = echo "$( light -b | sed 's/\..*//' )%" | ||
221 | scroll-up = exec light -A 3 | ||
222 | scroll-down = exec light -U 3 | ||
223 | click-left = redshift -O 4000 | ||
224 | click-right = redshift -O 6500 | ||
225 | format-foreground = ${colors.foreground | ||
226 | format-padding = 2 | ||
227 | interval = 0.01 | ||
228 | |||
229 | [module/separator] | ||
230 | type = custom/script | ||
231 | format-text = <label> | ||
232 | label = " " | ||
233 | exec = echo label | ||
234 | format-foreground = ${colors.foreground} | ||