Begin restructuring
- Daemon `popcorn-d` handles the UI rendering - `popcorn` acts as cli tool
This commit is contained in:
parent
0d7dfde926
commit
5207826108
@ -2,9 +2,25 @@
|
|||||||
name = "popcorn-d"
|
name = "popcorn-d"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
description = "Popcorn OSD daemon to watch for system events."
|
description = "Popcorn OSD daemon (UI renderer)"
|
||||||
|
readme = "README.md"
|
||||||
|
repository = "https://git.candifloss.cc/candifloss/popcorn.git"
|
||||||
|
authors = ["Candifloss <candifloss.cc>"]
|
||||||
|
categories = ["Desktop", "GUI", "Daemon"]
|
||||||
|
homepage = "https://git.candifloss.cc/candifloss/popcorn.git"
|
||||||
|
keywords = ["OSD", "popup", "desktop", "gui", "slint"]
|
||||||
license = "GPL-3+"
|
license = "GPL-3+"
|
||||||
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
dirs = "6.0.0"
|
||||||
|
i-slint-backend-winit = "1.14.1"
|
||||||
|
serde_json = "1.0.145"
|
||||||
|
slint = { version = "1.14.1", default-features = false, features = ["backend-winit", "renderer-software", "compat-1-2"]}
|
||||||
|
toml = "0.9.8"
|
||||||
|
popcorn-conf = { path = "../popcorn-conf" }
|
||||||
|
clap = { version = "4.5.53", features = ["derive"] }
|
||||||
serde = { version = "1.0.228", features = ["derive"] }
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
tokio = { version = "1.48.0", features = ["full"] }
|
|
||||||
|
[build-dependencies]
|
||||||
|
slint-build = "1.14.1"
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
fn main() {
|
mod args;
|
||||||
println!("Hello, world!");
|
mod show_popup;
|
||||||
|
|
||||||
|
use args::{CliArgs, OsdArgs};
|
||||||
|
use clap::Parser;
|
||||||
|
|
||||||
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
let cli = CliArgs::parse();
|
||||||
|
let parsed_args: OsdArgs = cli.into();
|
||||||
|
|
||||||
|
show_popup::show_popup(&parsed_args)?;
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,25 +2,11 @@
|
|||||||
name = "popcorn"
|
name = "popcorn"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
description = "Cute and simple OSD popups on your desktop"
|
description = "CLI client for Popcorn OSD"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://git.candifloss.cc/candifloss/popcorn.git"
|
repository = "https://git.candifloss.cc/candifloss/popcorn.git"
|
||||||
authors = ["Candifloss <candifloss.cc>"]
|
authors = ["Candifloss <candifloss.cc>"]
|
||||||
categories = ["Desktop", "GUI"]
|
categories = ["Desktop", "CLI"]
|
||||||
homepage = "https://git.candifloss.cc/candifloss/popcorn.git"
|
homepage = "https://git.candifloss.cc/candifloss/popcorn.git"
|
||||||
keywords = ["OSD", "popup", "desktop", "gui", "slint"]
|
keywords = ["OSD", "popup", "desktop", "cli"]
|
||||||
license = "GPL-3+"
|
license = "GPL-3+"
|
||||||
build = "build.rs"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
dirs = "6.0.0"
|
|
||||||
i-slint-backend-winit = "1.14.1"
|
|
||||||
serde_json = "1.0.145"
|
|
||||||
slint = { version = "1.14.1", default-features = false, features = ["backend-winit", "renderer-software", "compat-1-2"]}
|
|
||||||
toml = "0.9.8"
|
|
||||||
popcorn-conf = { path = "../popcorn-conf" }
|
|
||||||
clap = { version = "4.5.53", features = ["derive"] }
|
|
||||||
serde = { version = "1.0.228", features = ["derive"] }
|
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
slint-build = "1.14.1"
|
|
||||||
@ -1,13 +1,3 @@
|
|||||||
mod args;
|
fn main() {
|
||||||
mod show_popup;
|
println!("Hello, world!");
|
||||||
|
|
||||||
use args::{CliArgs, OsdArgs};
|
|
||||||
use clap::Parser;
|
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
||||||
let cli = CliArgs::parse();
|
|
||||||
let parsed_args: OsdArgs = cli.into();
|
|
||||||
|
|
||||||
show_popup::show_popup(&parsed_args)?;
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user