Commit Graph

13 Commits

Author SHA1 Message Date
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 89d629bdda reload stylesheet on change 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 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 c587817907 rework updates to allow file input readiness as well as timers 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 1fcd4fc933 fix load-icon for abolute paths 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 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 498c7f8f61 initial checkin 2022-04-26 21:25:40 +01:00