Add Ctl Socket, iterate on Idling daemon, update sysinfo crate, start on run menu

This commit is contained in:
jmb05
2026-10-30 16:49:21 +01:00
parent a6b601e3bd
commit 80b5cafb8c
17 changed files with 504 additions and 260 deletions

View File

@@ -1,6 +1,7 @@
use crate::backend::Backend;
mod backend;
mod css;
mod ctl;
mod ui;
use glib::clone;
@@ -29,6 +30,7 @@ fn main() {
let backend = Backend::start();
app.connect_startup(move |_| {
debug!(&LOGGER, "Connect startup");
let provider = CssProvider::new();
if let Some(css) = css::parse_css() {
provider.load_from_string(&css);
@@ -46,10 +48,12 @@ fn main() {
#[strong]
backend,
move |app| {
debug!(&LOGGER, "Connect activate");
trace!(&LOGGER, "Starting bars");
ui::create_bars(app, backend.clone());
}
));
debug!(&LOGGER, "Running app");
app.run();
}