mirror of
https://github.com/2e3s/awatcher.git
synced 2025-06-05 19:15:33 +00:00
Fix port type in config
This commit is contained in:
parent
21acaeaa35
commit
e2ee19f494
@ -52,7 +52,7 @@ pub fn from_cli() -> anyhow::Result<RunnerConfig> {
|
|||||||
.args([
|
.args([
|
||||||
arg!(-c --config <FILE> "Custom config file").value_parser(value_parser!(PathBuf)),
|
arg!(-c --config <FILE> "Custom config file").value_parser(value_parser!(PathBuf)),
|
||||||
arg!(--port <PORT> "Custom server port")
|
arg!(--port <PORT> "Custom server port")
|
||||||
.value_parser(value_parser!(u32))
|
.value_parser(value_parser!(u16))
|
||||||
.default_value(defaults::port().to_string()),
|
.default_value(defaults::port().to_string()),
|
||||||
#[cfg(not(feature = "bundle"))]
|
#[cfg(not(feature = "bundle"))]
|
||||||
arg!(--host <HOST> "Custom server host")
|
arg!(--host <HOST> "Custom server host")
|
||||||
|
@ -13,7 +13,7 @@ use std::sync::{mpsc::channel, Arc};
|
|||||||
use std::thread;
|
use std::thread;
|
||||||
use tokio::sync::Mutex;
|
use tokio::sync::Mutex;
|
||||||
use zbus::interface;
|
use zbus::interface;
|
||||||
use zbus::{Connection, conn::Builder as ConnectionBuilder};
|
use zbus::{conn::Builder as ConnectionBuilder, Connection};
|
||||||
|
|
||||||
const KWIN_SCRIPT_NAME: &str = "activity_watcher";
|
const KWIN_SCRIPT_NAME: &str = "activity_watcher";
|
||||||
const KWIN_SCRIPT: &str = include_str!("kwin_window.js");
|
const KWIN_SCRIPT: &str = include_str!("kwin_window.js");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user