diff options
author | Yigit Sever | 2021-10-06 02:30:07 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-06 02:30:07 +0300 |
commit | 0b473ecaa8640695ca2f748231dd68d6fb79af41 (patch) | |
tree | 968f5c56a749d06e2d2d51aebf6c14eb3b55e142 | |
parent | 67a15160f735f33932e8b355bc304b04a531c94e (diff) | |
download | dotfiles-0b473ecaa8640695ca2f748231dd68d6fb79af41.tar.gz dotfiles-0b473ecaa8640695ca2f748231dd68d6fb79af41.tar.bz2 dotfiles-0b473ecaa8640695ca2f748231dd68d6fb79af41.zip |
polybar: new & improved
-rw-r--r-- | .config/polybar/config##c.desktop,h.maus | 221 |
1 files changed, 139 insertions, 82 deletions
diff --git a/.config/polybar/config##c.desktop,h.maus b/.config/polybar/config##c.desktop,h.maus index 3c51ec4..b2105f2 100644 --- a/.config/polybar/config##c.desktop,h.maus +++ b/.config/polybar/config##c.desktop,h.maus | |||
@@ -10,26 +10,35 @@ | |||
10 | ;========================================================== | 10 | ;========================================================== |
11 | 11 | ||
12 | [colors] | 12 | [colors] |
13 | background = #0c1014 | 13 | background = #2D2926 |
14 | background_alt = #0a3749 | 14 | background_modules = #F6F4EA |
15 | background_modules = #fbf1c7 | 15 | foreground = #F6F4EA |
16 | foreground = #d3ebe9 | 16 | foreground_modules = #2D2926 |
17 | foreground_alt = #99d1ce | 17 | red = #CE3643 |
18 | foreground_modules = #282828 | 18 | green = #6AAFAA |
19 | red = #9d0006 | 19 | sold_out_green = #1DB954 |
20 | green = #427b58 | 20 | yellow = #D9C91A |
21 | sold_out_green = #1DB954 | 21 | blue = #8AAAEB |
22 | yellow = #b56714 | 22 | purple = #7F21AD |
23 | blue = #458588 | 23 | aqua = #4CC9BE |
24 | purple = #8f3f71 | 24 | orange = #C24049 |
25 | aqua = #689d6a | 25 | |
26 | orange = #d65d0e | 26 | ; [colors] |
27 | primary = #d26937 | 27 | ; background = #080808 |
28 | secondary = #888ca6 | 28 | ; background_modules = #eeeeee |
29 | alert = #c23127 | 29 | ; foreground = #b2b2b2 |
30 | ; foreground_modules = #080808 | ||
31 | ; red = #ff5454 | ||
32 | ; green = #8cc85f | ||
33 | ; sold_out_green = #1DB954 | ||
34 | ; yellow = #e3c78a | ||
35 | ; blue = #80a0ff | ||
36 | ; purple = #d183e8 | ||
37 | ; aqua = #79dac8 | ||
38 | ; orange = #ff5189 | ||
30 | 39 | ||
31 | [bar/top] | 40 | [bar/top] |
32 | monitor = HDMI-0 | 41 | monitor = DP-0 |
33 | width = 100% | 42 | width = 100% |
34 | height = 20 | 43 | height = 20 |
35 | offset-x = 0 | 44 | offset-x = 0 |
@@ -40,29 +49,43 @@ fixed-center = true | |||
40 | background = ${colors.background} | 49 | background = ${colors.background} |
41 | foreground = ${colors.foreground} | 50 | foreground = ${colors.foreground} |
42 | 51 | ||
43 | border-top-size = 0 | 52 | padding-right = 2 |
44 | border-bottom-size = 0 | ||
45 | border-top-color = ${colors.background} | ||
46 | border-bottom-color = ${colors.background} | ||
47 | |||
48 | padding = 2 | ||
49 | module-margin = 1 | 53 | module-margin = 1 |
50 | 54 | ||
51 | font-0 = scientifica:antialias=false;1 | 55 | font-0 = scientifica:antialias=false;1 |
52 | font-1 = Lato:size=10;1 | 56 | font-1 = Siji:size=20;1 |
53 | font-2 = Raleway:size=10;1 | ||
54 | font-3 = FuraCode Nerd Font:size=12;2 | ||
55 | font-4 = Noto Color Emoji:scale=10;2 | ||
56 | 57 | ||
57 | modules-left = i3 pulseaudio-control spotify mpd | 58 | modules-left = i3 pulseaudio-control spotify mpd github |
58 | modules-center = xwindow | 59 | modules-center = xwindow |
59 | modules-right = notification_pause cpu focus date time | 60 | modules-right = focus notification_pause cpu download upload date time |
60 | 61 | ||
61 | tray-position = right | 62 | tray-position = right |
63 | separator = | ||
62 | 64 | ||
63 | [module/cpu] | 65 | [module/github] |
64 | label = %percentage:4%% | 66 | type = internal/github |
65 | type = internal/cpu | 67 | |
68 | token = ${file:/home/yigit/.local/share/polybar/github_token} | ||
69 | user = yigitsever | ||
70 | empty-notifications = false | ||
71 | interval = 10 | ||
72 | api-url = https://api.github.com/ | ||
73 | |||
74 | format = <label> | ||
75 | label = %notifications% | ||
76 | |||
77 | label-padding = 1 | ||
78 | |||
79 | format-background = ${colors.background_modules} | ||
80 | format-foreground = ${colors.foreground_modules} | ||
81 | |||
82 | format-prefix = | ||
83 | format-prefix-foreground = ${colors.background_modules} | ||
84 | format-prefix-background = ${colors.purple} | ||
85 | format-prefix-padding = 1 | ||
86 | |||
87 | format-offline = <label-offline> | ||
88 | label-offline = Github offline | ||
66 | 89 | ||
67 | [module/focus] | 90 | [module/focus] |
68 | type = custom/script | 91 | type = custom/script |
@@ -75,44 +98,46 @@ type = custom/script | |||
75 | exec = ~/.config/polybar/notification_pause.sh | 98 | exec = ~/.config/polybar/notification_pause.sh |
76 | interval = 5 | 99 | interval = 5 |
77 | 100 | ||
78 | [module/newyork] | ||
79 | type = custom/script | ||
80 | exec = ~/.config/polybar/new_york.sh | ||
81 | format = <label> | ||
82 | format-prefix = "" | ||
83 | format-prefix-background = ${colors.secondary} | ||
84 | format-prefix-foreground = ${colors.foreground} | ||
85 | format-prefix-font = 4 | ||
86 | format-prefix-padding = 1 | ||
87 | |||
88 | label-background = ${colors.background_modules} | ||
89 | label-foreground = ${colors.foreground_modules} | ||
90 | label-padding = 1 | ||
91 | interval = 1 | ||
92 | |||
93 | [module/spotify] | 101 | [module/spotify] |
94 | type = custom/script | 102 | type = custom/script |
95 | interval = 1 | 103 | interval = 1 |
96 | format-prefix = "" | 104 | |
105 | format-prefix = | ||
97 | format-prefix-padding = 1 | 106 | format-prefix-padding = 1 |
98 | format-prefix-background = ${colors.sold_out_green} | 107 | format-prefix-background = ${colors.sold_out_green} |
99 | format-prefix-foreground = ${colors.foreground} | 108 | format-prefix-foreground = ${colors.foreground_modules} |
100 | format = <label> | 109 | format = <label> |
101 | format-padding = 0 | 110 | format-padding = 0 |
102 | exec = python /home/yigit/.config/polybar/spotify_status.py -f '{play_pause} {artist} - {song}' -p ', ' | 111 | exec = python /usr/share/polybar/scripts/spotify_status.py -f '{play_pause} {artist} - {song}' -p ', ' |
103 | ;契 | 112 | ;契 |
104 | 113 | ||
105 | [module/mpd] | 114 | [module/mpd] |
106 | type = internal/mpd | 115 | type = internal/mpd |
107 | 116 | ||
108 | format-online = <toggle> <label-song> <icon-random> | 117 | ; <toggle> - gets replaced with <icon-(pause|play)> |
109 | label-song = %artist% - %title% | 118 | format-online = <toggle><label-song> <icon-random> <icon-repeat> |
110 | icon-pause = | 119 | label-song = %{F#080808}%artist% %{F#427b58}%title% |
111 | icon-play = | 120 | format-online-font = 4 |
112 | icon-random = 咽 | 121 | |
122 | icon-pause = | ||
123 | icon-play = | ||
124 | icon-random = | ||
125 | icon-repeat = | ||
126 | |||
127 | icon-play-foreground = ${colors.foreground} | ||
128 | icon-play-background = #b8bb26 | ||
129 | icon-play-padding = 1 | ||
130 | |||
131 | icon-pause-foreground = ${colors.foreground} | ||
132 | icon-pause-background = #9d0006 | ||
133 | icon-pause-padding = 1 | ||
134 | |||
135 | label-song-foreground = ${colors.foreground_modules} | ||
136 | label-song-background = ${colors.background_modules} | ||
137 | label-song-padding = 1 | ||
113 | 138 | ||
114 | toggle-on-foreground = ${colors.background_modules} | 139 | toggle-on-foreground = ${colors.background_modules} |
115 | toggle-off-foreground = ${colors.foreground_modules} | 140 | toggle-off-foreground = #504945 |
116 | 141 | ||
117 | format-offline = <label-offline> | 142 | format-offline = <label-offline> |
118 | label-offline = mpd is offline | 143 | label-offline = mpd is offline |
@@ -125,8 +150,8 @@ label = %title:0:70:...% | |||
125 | y-offset = 10 | 150 | y-offset = 10 |
126 | label-padding = 1 | 151 | label-padding = 1 |
127 | 152 | ||
128 | label-empty = | 153 | ; there is a archlinux logo below |
129 | label-empty-font = 4 | 154 | label-empty = |
130 | label-empty-padding = 5 | 155 | label-empty-padding = 5 |
131 | 156 | ||
132 | [module/xkeyboard] | 157 | [module/xkeyboard] |
@@ -141,7 +166,6 @@ format-prefix = | |||
141 | format-prefix-padding = 1 | 166 | format-prefix-padding = 1 |
142 | format-prefix-background = ${colors.blue} | 167 | format-prefix-background = ${colors.blue} |
143 | format-prefix-foreground = ${colors.foreground} | 168 | format-prefix-foreground = ${colors.foreground} |
144 | format-prefix-font = 4 | ||
145 | 169 | ||
146 | label-layout = %name% | 170 | label-layout = %name% |
147 | label-layout-padding = 1 | 171 | label-layout-padding = 1 |
@@ -150,39 +174,75 @@ label-layout-foreground = ${colors.foreground_modules} | |||
150 | 174 | ||
151 | label-indicator-padding = 2 | 175 | label-indicator-padding = 2 |
152 | label-indicator-margin = | 176 | label-indicator-margin = |
153 | label-indicator-background = ${colors.alert} | 177 | label-indicator-background = ${colors.red} |
154 | 178 | ||
155 | [module/i3] | 179 | [module/i3] |
156 | type = internal/i3 | 180 | type = internal/i3 |
157 | format = <label-state> <label-mode> | 181 | format = <label-state> |
158 | index-sort = true | 182 | index-sort = false |
159 | wrapping-scroll = false | 183 | wrapping-scroll = false |
160 | strip-wsnumbers = true | 184 | strip-wsnumbers = true |
161 | 185 | ||
186 | ws-icon-default = | ||
187 | ws-icon-0 = 0; | ||
188 | ws-icon-1 = 1; | ||
189 | ws-icon-2 = 2; | ||
190 | ws-icon-3 = 3; | ||
191 | ws-icon-4 = 4; | ||
192 | ws-icon-5 = 5; | ||
193 | ws-icon-6 = 6; | ||
194 | ws-icon-7 = 7; | ||
195 | ws-icon-8 = 8; | ||
196 | ws-icon-9 = 9; | ||
197 | ws-icon-10 = music; | ||
198 | ws-icon-11 = zotero; | ||
199 | ws-icon-12 = desktop; | ||
200 | ws-icon-13 = browser; | ||
201 | ws-icon-14 = steam; | ||
202 | |||
162 | label-mode-background = ${colors.background_modules} | 203 | label-mode-background = ${colors.background_modules} |
163 | label-mode-foreground = ${colors.foreground_modules} | 204 | label-mode-foreground = ${colors.foreground_modules} |
164 | label-mode-padding = 2 | 205 | label-mode-padding = 2 |
165 | 206 | ||
166 | label-focused = %name% | 207 | label-focused = %icon% %output:0:1% |
167 | label-focused-background = ${colors.red} | 208 | label-focused-background = ${colors.green} |
168 | label-focused-foreground = ${colors.background_modules} | 209 | label-focused-foreground = ${colors.background_modules} |
169 | label-focused-padding = 1 | 210 | label-focused-padding = 1 |
170 | 211 | ||
171 | label-unfocused = %name% | 212 | label-unfocused = %icon% |
172 | label-unfocused-background = ${colors.background_modules} | 213 | label-unfocused-background = ${colors.background_modules} |
173 | label-unfocused-foreground = ${colors.foreground_modules} | 214 | label-unfocused-foreground = ${colors.foreground_modules} |
174 | label-unfocused-padding = 1 | 215 | label-unfocused-padding = 1 |
175 | 216 | ||
176 | label-visible = %name% | 217 | label-visible = %icon% %output:0:1% |
177 | label-visible-background = ${colors.background_modules} | 218 | label-visible-background = ${colors.blue} |
178 | label-visible-foreground = ${colors.foreground_modules} | 219 | label-visible-foreground = ${colors.foreground_modules} |
179 | label-visible-padding = 1 | 220 | label-visible-padding = 1 |
180 | 221 | ||
181 | label-urgent = %name% | 222 | label-urgent = %icon% |
182 | label-urgent-background = ${colors.alert} | 223 | label-urgent-background = ${colors.red} |
183 | label-urgent-foreground = ${colors.background} | 224 | label-urgent-foreground = ${colors.background_modules} |
184 | label-urgent-padding = 1 | 225 | label-urgent-padding = 1 |
185 | 226 | ||
227 | label-separator = " " | ||
228 | label-separator-foreground = ${colors.foreground} | ||
229 | label-separator-background = #504945 | ||
230 | |||
231 | [module/cpu] | ||
232 | type = internal/cpu | ||
233 | label = %percentage:3%% | ||
234 | format = <label> | ||
235 | |||
236 | format-prefix = | ||
237 | format-prefix-background = ${colors.purple} | ||
238 | format-prefix-foreground = ${colors.foreground} | ||
239 | format-prefix-padding = 1 | ||
240 | |||
241 | format-background = ${colors.background_modules} | ||
242 | format-foreground = ${colors.foreground_modules} | ||
243 | |||
244 | label-padding = 1 | ||
245 | |||
186 | [module/download] | 246 | [module/download] |
187 | type = internal/network | 247 | type = internal/network |
188 | interface = eno1 | 248 | interface = eno1 |
@@ -190,12 +250,12 @@ interval = 3.0 | |||
190 | 250 | ||
191 | format-connected = <label-connected> | 251 | format-connected = <label-connected> |
192 | 252 | ||
193 | format-connected-prefix = | 253 | format-connected-prefix = |
194 | format-connected-prefix-padding = 1 | 254 | format-connected-prefix-padding = 1 |
195 | format-connected-prefix-background = ${colors.green} | 255 | format-connected-prefix-background = ${colors.green} |
196 | format-connected-prefix-foreground = ${colors.foreground} | 256 | format-connected-prefix-foreground = ${colors.foreground} |
197 | 257 | ||
198 | label-connected = %downspeed% | 258 | label-connected = %downspeed:8% |
199 | label-connected-background = ${colors.background_modules} | 259 | label-connected-background = ${colors.background_modules} |
200 | label-connected-foreground = ${colors.foreground_modules} | 260 | label-connected-foreground = ${colors.foreground_modules} |
201 | label-connected-padding = 1 | 261 | label-connected-padding = 1 |
@@ -210,12 +270,12 @@ interval = 3.0 | |||
210 | 270 | ||
211 | format-connected = <label-connected> | 271 | format-connected = <label-connected> |
212 | 272 | ||
213 | format-connected-prefix = | 273 | format-connected-prefix = |
214 | format-connected-prefix-padding = 1 | 274 | format-connected-prefix-padding = 1 |
215 | format-connected-prefix-background = ${colors.yellow} | 275 | format-connected-prefix-background = ${colors.yellow} |
216 | format-connected-prefix-foreground = ${colors.foreground} | 276 | format-connected-prefix-foreground = ${colors.foreground} |
217 | 277 | ||
218 | label-connected = %upspeed% | 278 | label-connected = %upspeed:8% |
219 | label-connected-background = ${colors.background_modules} | 279 | label-connected-background = ${colors.background_modules} |
220 | label-connected-foreground = ${colors.foreground_modules} | 280 | label-connected-foreground = ${colors.foreground_modules} |
221 | label-connected-padding = 1 | 281 | label-connected-padding = 1 |
@@ -228,10 +288,9 @@ date = %Y-%m-%d %A | |||
228 | label = %date% | 288 | label = %date% |
229 | format = <label> | 289 | format = <label> |
230 | 290 | ||
231 | format-prefix = | 291 | format-prefix = |
232 | format-prefix-background = ${colors.orange} | 292 | format-prefix-background = ${colors.orange} |
233 | format-prefix-foreground = ${colors.foreground} | 293 | format-prefix-foreground = ${colors.foreground} |
234 | format-prefix-font = 4 | ||
235 | format-prefix-padding = 1 | 294 | format-prefix-padding = 1 |
236 | 295 | ||
237 | label-background = ${colors.background_modules} | 296 | label-background = ${colors.background_modules} |
@@ -246,10 +305,9 @@ time = %H:%M | |||
246 | label = %time% | 305 | label = %time% |
247 | format = <label> | 306 | format = <label> |
248 | 307 | ||
249 | format-prefix = | 308 | format-prefix = |
250 | format-prefix-background = ${colors.secondary} | 309 | format-prefix-background = ${colors.aqua} |
251 | format-prefix-foreground = ${colors.foreground} | 310 | format-prefix-foreground = ${colors.foreground} |
252 | format-prefix-font = 4 | ||
253 | format-prefix-padding = 1 | 311 | format-prefix-padding = 1 |
254 | 312 | ||
255 | label-background = ${colors.background_modules} | 313 | label-background = ${colors.background_modules} |
@@ -262,10 +320,9 @@ interval = 5 | |||
262 | 320 | ||
263 | format-volume = <label-volume> | 321 | format-volume = <label-volume> |
264 | 322 | ||
265 | format-volume-prefix = | 323 | format-volume-prefix = |
266 | format-volume-prefix-background = ${colors.purple} | 324 | format-volume-prefix-background = ${colors.purple} |
267 | format-volume-prefix-foreground = ${colors.background_modules} | 325 | format-volume-prefix-foreground = ${colors.background_modules} |
268 | format-volume-prefix-font = 4 | ||
269 | format-volume-prefix-padding = 1 | 326 | format-volume-prefix-padding = 1 |
270 | 327 | ||
271 | label-volume = %percentage% | 328 | label-volume = %percentage% |