README: delete outdated example

phoen
Daniel Barlow 2022-03-26 18:07:34 +00:00
parent ba54bd7e41
commit 26f0f46c71
1 changed files with 0 additions and 31 deletions

View File

@ -46,34 +46,3 @@ Gtk will find it anyway. Magic.
* [ ] set poll interval based on indicators' requested intervals
* [X] set indicator background colour (use css for this?)
* [ ] allow indicator to change styles based on status
```fennel
;; your status bar specification might look something like this
(bar
{
:anchor [:top :right]
:orientation :horizontal
:indicators
[
(indicator {
:interval 200
:icon #(if (> loadavg 2) "sad-face" "happy-face")
})
(let [f (io.open "/tmp/statuspipe" "r")]
(indicator {
:poll [f]
:text #(f:read:sub 1 10)
}))
(indicator {
:interval 5000
:text #(.. (disk-free-percent "/") "%")
:on-click #(spawn "baobab")
})
(indicator {
:interval 1000
:text #(os.date "%X")
})
]})
```