refactor: compile applets as multicall binary
This commit is contained in:
parent
4099624499
commit
3c4acdacd7
48 changed files with 2393 additions and 2256 deletions
16
cosmic-applet-workspaces/src/lib.rs
Normal file
16
cosmic-applet-workspaces/src/lib.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
mod components;
|
||||
#[rustfmt::skip]
|
||||
mod config;
|
||||
mod localize;
|
||||
mod wayland;
|
||||
mod wayland_subscription;
|
||||
|
||||
use localize::localize;
|
||||
|
||||
use crate::components::app;
|
||||
|
||||
pub fn run() -> cosmic::iced::Result {
|
||||
localize();
|
||||
|
||||
app::run()
|
||||
}
|
||||
|
|
@ -1,28 +1,10 @@
|
|||
mod components;
|
||||
#[rustfmt::skip]
|
||||
mod config;
|
||||
mod localize;
|
||||
mod wayland;
|
||||
mod wayland_subscription;
|
||||
|
||||
use tracing::info;
|
||||
|
||||
use localize::localize;
|
||||
|
||||
use crate::components::app;
|
||||
|
||||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
fn main() -> cosmic::iced::Result {
|
||||
// Initialize logger
|
||||
tracing_subscriber::fmt::init();
|
||||
let _ = tracing_log::LogTracer::init();
|
||||
|
||||
info!("Starting audio applet with version {VERSION}");
|
||||
info!("Iced Workspaces Applet ({VERSION})");
|
||||
tracing::info!("Starting workspaces applet with version {VERSION}");
|
||||
|
||||
// Prepare i18n
|
||||
localize();
|
||||
|
||||
app::run()
|
||||
cosmic_applet_workspaces::run()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,12 +14,9 @@ use cctk::{
|
|||
};
|
||||
use cosmic_protocols::workspace::v1::client::zcosmic_workspace_handle_v1;
|
||||
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 wayland_client::backend::ObjectId;
|
||||
use wayland_client::{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue