refactor: compile applets as multicall binary
This commit is contained in:
parent
4099624499
commit
3c4acdacd7
48 changed files with 2393 additions and 2256 deletions
12
cosmic-applet-tiling/src/lib.rs
Normal file
12
cosmic-applet-tiling/src/lib.rs
Normal 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, ())
|
||||
}
|
||||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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::{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue