... | ... |
@@ -250,8 +250,30 @@ enable-ipc = true |
250 | 250 |
; cursor-click = pointer |
251 | 251 |
; cursor-scroll = ns-resize |
252 | 252 |
|
253 |
-[bar/noshadow-top] |
|
254 |
-inherit = bar-base |
|
253 |
+[bar-border-base] |
|
254 |
+inherit = bar-base |
|
255 |
+background = ${colors.transparent} |
|
256 |
+ |
|
257 |
+[bar/border-top] |
|
258 |
+inherit = bar-border-base |
|
259 |
+bottom = false |
|
260 |
+modules-center = border |
|
261 |
+ |
|
262 |
+[bar/border-bottom] |
|
263 |
+inherit = bar-border-base |
|
264 |
+bottom = true |
|
265 |
+modules-center = border |
|
266 |
+ |
|
267 |
+[bar-fake-base] |
|
268 |
+inherit = bar-base |
|
269 |
+override-redirect = true |
|
270 |
+border-size = 0 |
|
271 |
+offset-x = 5 |
|
272 |
+offset-y = 5 |
|
273 |
+width = 100%:-10 |
|
274 |
+ |
|
275 |
+[bar/fake-top] |
|
276 |
+inherit = bar-fake-base |
|
255 | 277 |
bottom = false |
256 | 278 |
modules-left = i3 |
257 | 279 |
modules-center = xwindow |
... | ... |
@@ -259,19 +281,22 @@ tray-position = right |
259 | 281 |
; https://github.com/polybar/polybar/pull/2552 |
260 | 282 |
; tray-foreground = ${colors.foreground} |
261 | 283 |
tray-background = ${colors.foreground} |
262 |
-border-bottom-size = 2 |
|
263 | 284 |
|
264 |
-[bar/noshadow-bottom] |
|
265 |
-inherit = bar-base |
|
285 |
+[bar/fake-bottom] |
|
286 |
+inherit = bar-fake-base |
|
266 | 287 |
bottom = true |
267 | 288 |
padding = 1 |
268 | 289 |
modules-left = mpd |
269 | 290 |
modules-center = date |
270 | 291 |
modules-right = eth0 wlan0 eno1 wlo1 battery temperature cpu memory filesystem keyboard backlight volume powermenu |
271 |
-border-top-size = 2 |
|
272 | 292 |
|
273 | 293 |
;; Modules |
274 | 294 |
|
295 |
+;;; Border |
|
296 |
+[module/border] |
|
297 |
+type = custom/text |
|
298 |
+content = " " |
|
299 |
+ |
|
275 | 300 |
;;; i3 |
276 | 301 |
; https://github.com/polybar/polybar/wiki/Module:-i3 |
277 | 302 |
|
... | ... |
@@ -22,6 +22,8 @@ |
22 | 22 |
| sed 's|.*/\(.\+\)/type$|\1|' |
23 | 23 |
)" |
24 | 24 |
killall --wait polybar 2> '/dev/null' || true |
25 |
- polybar --quiet --reload noshadow-top & |
|
26 |
- polybar --quiet --reload noshadow-bottom & |
|
25 |
+ polybar --quiet --reload fake-top & |
|
26 |
+ polybar --quiet --reload fake-bottom & |
|
27 |
+ polybar --quiet --reload border-top & |
|
28 |
+ polybar --quiet --reload border-bottom & |
|
27 | 29 |
) & |