Updates to awesome with fennel

This commit is contained in:
Chris Cochrun 2020-09-07 20:44:01 -05:00
parent ebf15f2270
commit 3d48649971
7 changed files with 63 additions and 78 deletions

19
awesome/bar.fnl Normal file
View file

@ -0,0 +1,19 @@
(local awful (require "awful"))
(local beautiful (require "beautiful"))
(local wibox (require "wibox"))
(local dpi xresources.apply_dpi)
(awful.screen.connect_for_each_screen(fn screen_bar [s]
"Adding a bar for each screen"
(awful.tag([ "◉", "◉", "◉", "◉"] s awful.layout.layouts[1]))
(let [yoffset (dpi 45)])
(let [xoffset (dpi 18)])
(let [mypanel (wibox
[
(let x (+ s.geometry.x xoffset))
(let y (- s.geometry.height yoffset))
(let height (dpi 30))
])])
))