Commit Graph

55 Commits (2f32fac349ce8f5fd8aef49a115ced3bf5e951d8)

Author SHA1 Message Date
Daniel Barlow 2f32fac349 merge blinkenlicht, add modeline 2022-04-26 22:13:37 +01:00
Daniel Barlow 1887b72d1c graphical wifi quality display 2022-04-26 21:25:43 +01:00
Daniel Barlow a39a752b15 print error when failing to load image 2022-04-26 21:25:43 +01:00
Daniel Barlow 2ec7bfc78a support svg icons 2022-04-26 21:25:43 +01:00
Daniel Barlow 4bab073ba9 don't spam console when reloading css 2022-04-26 21:25:43 +01:00
Daniel Barlow 2ef630f30d make it bigger, add padding on right edge 2022-04-26 21:25:43 +01:00
Daniel Barlow 280954622d whitespace and comments 2022-04-26 21:25:43 +01:00
Daniel Barlow 463c1eea03 standardise interface to metrics
call as follows:

(let [m  (metricname.new)]
  (m:read)
  (m:read)
   ...
   )
2022-04-26 21:25:43 +01:00
Daniel Barlow b6a8048c8b uplink: use route with lowest metric 2022-04-26 21:25:43 +01:00
Daniel Barlow e4f7e911b8 metric: don't hardcode battery name
bl: red background if battery is low
2022-04-26 21:25:43 +01:00
Daniel Barlow 8c34f9429e note need to support >1 default route 2022-04-26 21:25:43 +01:00
Daniel Barlow 3d5d1078c2 tidy the example layout 2022-04-26 21:25:43 +01:00
Daniel Barlow 8d8c65e5b3 add "gravity" option for bar
A bar must be full-screen-width (or height, for vertical bars) to
have an "exclusive zone", otherwise it appears on top of other windows
instead of moving them out of the way. To right-justify (or bottom-
justify) the indicators in a bar, add :gravity :end to its options

Am *probably* going to get rid of this again, in favour of adding
support for "spacers" in the bar - then the same bar could contain
both left- and right-justified indicators
2022-04-26 21:25:43 +01:00
Daniel Barlow c426bf7893 add indicator for modem status 2022-04-26 21:25:43 +01:00
Daniel Barlow 89d629bdda reload stylesheet on change 2022-04-26 21:25:42 +01:00
Daniel Barlow 229ba07b80 add "uplink" indicator
- currently shows ssid and signal strength, if wlan
- for lan, should show interface name (not tested)

plan to enhance with
- lan speed, for wired ethernet
- wwan support
2022-04-26 21:25:42 +01:00
Daniel Barlow da00b8a3a5 make netlink socket private (closed over) 2022-04-26 21:25:42 +01:00
Daniel Barlow 8943c1d652 add wlan quality and ssid 2022-04-26 21:25:42 +01:00
Daniel Barlow 7ae4284dc0 remove debug prints 2022-04-26 21:25:42 +01:00
Daniel Barlow 6b327d1f39 remove unused `find` fn 2022-04-26 21:25:42 +01:00
Daniel Barlow 6c6d7b0d18 remove commented code 2022-04-26 21:25:42 +01:00
Daniel Barlow afd2d5dff0 experimental netlink code 2022-04-26 21:25:42 +01:00
Daniel Barlow a3584f21e0 change the charging icon 2022-04-26 21:25:42 +01:00
Daniel Barlow e20e2d335f smooth the disk light a bit 2022-04-26 21:25:42 +01:00
Daniel Barlow 3c8051a84e extract non-blocking unix file input into iostream module 2022-04-26 21:25:42 +01:00
Daniel Barlow 4c63c0338d smarter poll timeout interval
use highest common factor of requested intervals. this will still
suck if we have e.g. intervals of 333 and 1000, we could probably
refine it a bit. no interval over 3s cares about millisecond precision
2022-04-26 21:25:42 +01:00
Daniel Barlow 448a0317fb indicator for disk io: less than perfect, better than nothing 2022-04-26 21:25:42 +01:00
Daniel Barlow 4ba657c98f use eventbox instead of button
Button, somehow, doesn't seem to notice css class changes
after it's rendered. EventBox has less baggage
2022-04-26 21:25:42 +01:00
Daniel Barlow 028d5920a2 add cpu state metric (/proc/state) 2022-04-26 21:25:42 +01:00
Daniel Barlow 7e81c7c5ad delete debug print 2022-04-26 21:25:42 +01:00
Daniel Barlow 4e53d1673c sync TODO 2022-04-26 21:25:41 +01:00
Daniel Barlow c587817907 rework updates to allow file input readiness as well as timers 2022-04-26 21:25:41 +01:00
Daniel Barlow 26f0f46c71 README: delete outdated example 2022-04-26 21:25:41 +01:00
Daniel Barlow ba54bd7e41 extract "system info" functions into new metric.fnl module 2022-04-26 21:25:41 +01:00
Daniel Barlow e198e8aae5 note about icon fonts 2022-04-26 21:25:41 +01:00
Daniel Barlow 2a004d08df print error message if load-styles fails 2022-04-26 21:25:41 +01:00
Daniel Barlow fcd5aee103 support user stylesheet and customisable css class names 2022-04-26 21:25:41 +01:00
Daniel Barlow c687b4d3b8 fix markdown syntax 2022-04-26 21:25:41 +01:00
Daniel Barlow a76d10e0da add some notes to readme 2022-04-26 21:25:41 +01:00
Daniel Barlow 1fcd4fc933 fix load-icon for abolute paths 2022-04-26 21:25:41 +01:00
Daniel Barlow 7f1eddafce print date without seconds 2022-04-26 21:25:41 +01:00
Daniel Barlow 8abdffdbec add icons for battery status 2022-04-26 21:25:41 +01:00
Daniel Barlow 48ffaa7695 cache scaled icons after loading 2022-04-26 21:25:41 +01:00
Daniel Barlow b84a8f5758 add battery status indicator 2022-04-26 21:25:41 +01:00
Daniel Barlow b0fe8e1dff update only when interval requires it 2022-04-26 21:25:41 +01:00
Daniel Barlow 10154115bf add layer-shell, todo list 2022-04-26 21:25:40 +01:00
Daniel Barlow 76b919baed remove unneeded stuff in derivation 2022-04-26 21:25:40 +01:00
Daniel Barlow 498c7f8f61 initial checkin 2022-04-26 21:25:40 +01:00
Daniel Barlow b7ab3d1f31 add Fennel support 2022-04-26 21:14:46 +01:00
Daniel Barlow 74a1c01900 add kiwmi as git subtree and derivation to build it 2022-04-26 15:52:14 +01:00