refactor: compile applets as multicall binary

This commit is contained in:
Michael Aaron Murphy 2024-03-14 18:47:41 +01:00 committed by Michael Murphy
parent 4099624499
commit 3c4acdacd7
48 changed files with 2393 additions and 2256 deletions

View file

@ -0,0 +1,12 @@
use crate::window::Window;
mod localize;
mod wayland;
mod wayland_subscription;
mod window;
pub fn run() -> cosmic::iced::Result {
localize::localize();
cosmic::applet::run::<Window>(false, ())
}

View file

@ -1,12 +1,10 @@
use crate::window::Window;
mod localize;
mod wayland;
mod wayland_subscription;
mod window;
const VERSION: &str = env!("CARGO_PKG_VERSION");
fn main() -> cosmic::iced::Result {
localize::localize();
tracing_subscriber::fmt::init();
let _ = tracing_log::LogTracer::init();
cosmic::applet::run::<Window>(false, ())
tracing::info!("Starting tiling applet with version {VERSION}");
cosmic_applet_tiling::run()
}

View file

@ -12,12 +12,9 @@ use cctk::{
use cosmic::iced::futures;
use cosmic_protocols::workspace::v1::client::zcosmic_workspace_handle_v1::{self, TilingState};
use futures::{channel::mpsc, executor::block_on, SinkExt};
use std::{
os::{
fd::{FromRawFd, RawFd},
unix::net::UnixStream,
},
time::Duration,
use std::os::{
fd::{FromRawFd, RawFd},
unix::net::UnixStream,
};
use tracing::error;
use wayland_client::{