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