resize and show view on creation

phoen
Daniel Barlow 2022-04-26 22:13:51 +01:00
parent 2f32fac349
commit a1908de8d3
2 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,7 @@
;(local battery (require :blinkenlicht.metric.battery))
(local cpustat (require :blinkenlicht.metric.cpustat))
(stylesheet "licht.css")
(stylesheet "modeline.css")
(fn battery-icon-codepoint [status percent]
(if (= status "Charging") 0xf0e7

9
rc.fnl
View File

@ -1,4 +1,13 @@
(kiwmi:on "output" #(doto $1 (: :set_mode 360 720 0)))
(kiwmi:on "view"
(fn [view]
(let [(w h) (: (kiwmi:active_output) :size)]
(view:resize w h)
(view:move 0 0))
(view:focus)
(view:show)
(view:on "request_move" #(view:imove))
(view:on "request_resize" (fn [ev] (view:iresize ev.edges)))))
;(kiwmi:spawn "swaybg -c '#ff00ff'")