making screens a little cleaner code

This commit is contained in:
Chris Cochrun 2022-03-25 10:05:23 -05:00
parent 189dd78334
commit 787726095a

View file

@ -87,7 +87,7 @@
(if (= "syl\n" stdout)
(global laptop true)
(global laptop false))))
(local laptop true)
(local laptop false)
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
@ -556,18 +556,17 @@
;; )
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
;; as opposed to what we normally need to do with a wibar
:position "bottom"
:x (+ s.geometry.x xoffset)
:y (- s.geometry.height yoffset)
:height (dpi 33)
:width (- s.geometry.width (* xoffset 2))
:ontop false
:stretch false
:type "dock"
:shape gears.shape.rounded_bar
:bg beautiful.bg_normal
:fg beautiful.fg_normal
:opacity 0.9
:opacity 0.8
:visible true
:screen s }))
(: s.mywibox :struts { :bottom (dpi 50) })
@ -605,8 +604,6 @@
:widget wibox.container.margin
}
})
(set s.mywibox.visible true) ;; this is needed to ensure the raw wibox is shown. Wibar normally does this
))