Commit graph

65 commits

Author SHA1 Message Date
Artemis Tosini 4893221973
battery: refactor to do less in callback 2023-12-24 22:25:31 +00:00
Artemis Tosini fb76f49325
battery: first attempt using upower 2023-12-24 22:11:59 +00:00
Artemis Tosini 66a117dfcc
battery: Add symbol 2023-12-24 19:22:12 +00:00
Skye e4da84bbd4 Replace mpsc with stream map of watch channels 2023-12-16 19:19:44 -05:00
Skye 381df2e644 Move generated submodules into a subdir
This will avoid possibility of them colliding with generated.rs
2023-12-16 17:57:36 -05:00
Skye 2c766e917d Reformat network_manager 2023-12-16 17:56:44 -05:00
Skye 17d3c6469e Deduplicate network_manager body 2023-12-16 17:25:51 -05:00
Skye c283df795e Refactor launch_tile to remove unnecessary arc clones() 2023-12-16 17:11:04 -05:00
Skye 9c210468fe Actually do skipping Nones in output 2023-12-16 16:58:58 -05:00
Skye ad1d0bde35 Make name optional, clean config_path, skip nones when serializing 2023-12-16 15:20:59 -05:00
Skye 184b854747 Add useful error to problems with geoip file 2023-12-14 23:07:17 -05:00
Skye 5fab9bc98b Lots of misc code changes 2023-12-14 23:01:39 -05:00
Artemis Tosini c0f832bcef
WIP NetworkManager tile 2023-12-14 23:29:46 +00:00
Artemis Tosini 49facf67c3
Properly set RUST_SRC_PATH in flake 2023-12-14 21:19:13 +00:00
Artemis Tosini ca44c81e73
Move tick to beginning of loop
The first tick completes immediately. Before this change messages would
be sent twice at first.
2023-12-14 21:10:32 +00:00
Artemis Tosini 92a611581f
Generate dbus bindings from xml descriptions 2023-12-14 21:08:33 +00:00
Artemis Tosini b22089d58b
tiles send to an mpsc directly, builds on stable rust 2023-12-14 05:34:58 +00:00
Artemis Tosini f85d9b4910
Fix padding in internet time 2023-12-14 01:21:13 +00:00
Artemis Tosini 8e968f13e6
Add Internet Time for some reason 2023-12-12 21:41:44 +00:00
Artemis Tosini ecf78a4264
Might handle leap seconds better 2023-12-12 20:40:27 +00:00
Artemis Tosini d0ce857365
Add new local_time and system_time tiles 2023-12-11 05:14:03 +00:00
Artemis Tosini b5f31d9328
Use rust nightly from fenix 2023-12-11 01:10:14 +00:00
Artemis Tosini 73886c37da
Update dependencies 2023-10-10 18:41:21 +00:00
Artemis Tosini 869c754d21
fallback to charge_full and charge_now 2023-10-10 18:30:02 +00:00
Artemis Tosini ea274f26c9
Use energy instead of charge in battery tile 2023-09-25 00:52:23 +00:00
Artemis Tosini 33be108857
Update flake.nix to use pkg-config 2023-09-22 01:50:58 +00:00
Artemis Tosini c21016e81a
Add an overlay that works 2021-11-20 03:50:10 +00:00
Artemis Tosini d2ae752053
Add an overlay 2021-11-20 03:19:25 +00:00
Artemis Tosini 8b19fa92c0
Replace shell.nix and defualt.nix with flakes 2021-11-20 01:36:34 +00:00
Artemis Tosini 56da46578d
Don't run the nonexistant tests when using nix 2021-08-27 19:02:11 +00:00
Artemis Tosini 892b43c83f
Add support for batteries not named BAT0 2021-08-27 18:37:40 +00:00
Artemis Tosini 3f69c3d2eb
Add default.nix to make this easy to build 2021-07-29 14:53:43 +00:00
Artemis Tosini 60004c3c8d
Update tokio, new iwd module 2021-07-29 04:50:46 +00:00
Skye Jensen 4ca561ccd8 Trim dependencies and rewrite prettify_kib 2020-08-10 20:56:21 -04:00
Artemis Tosini 1dc8605807
Clean up and use never type 2020-08-08 15:32:50 +00:00
Skye Jensen 49d7f5e19b Use futures_async_stream crate for writing streams 2020-08-07 21:13:02 -04:00
Skye Jensen c47d061fe6 Combine write calls in output::launch 2020-08-07 16:25:14 -04:00
Skye Jensen ce0ceba2f2 Propagate tile stream errors further before unwrapping 2020-08-07 15:00:03 -04:00
Skye Jensen 63d119a29f Remove unused imports 2020-08-07 14:17:53 -04:00
Skye Jensen 7d0c44bf5f Create TileResult type alias to clean up signatures 2020-08-07 14:15:40 -04:00
Skye Jensen 9ae994f637 rewrite hostname_stream to use dbus 2020-06-19 16:06:24 -04:00
Skye Jensen 9dfa11f0cf Actually include battery file 2020-06-15 20:52:31 -04:00
Skye Jensen 4d5604f775 Add battery tile implemented by reading from /sys 2020-06-15 20:48:49 -04:00
Skye Jensen 37d910d7f7 Add update config param 2020-06-14 01:37:32 -04:00
Skye Jensen e4e8fc11cc Move throttling outside of tiles 2020-06-13 22:22:30 -04:00
Skye Jensen dc78dfe4d6 Add debug feature to print latency 2020-06-13 20:11:48 -04:00
Skye Jensen aec10c000d Clean up AsyncIter 2020-06-05 20:08:23 -04:00
Skye Jensen 7131247e14 Add AsyncIter and test for it 2020-06-05 19:49:16 -04:00
Skye Jensen 6b9a5e1609 Use stream implementations of the tiles 2020-06-04 21:04:06 -04:00
Skye Jensen 68f2d4e3f1 Add stream implementations of tiles 2020-06-04 19:47:16 -04:00