update docs

This commit is contained in:
Ferdinand Schober
2025-03-15 13:02:57 +01:00
parent 5fb04176be
commit 83c3319a26
3 changed files with 5 additions and 5 deletions

View File

@@ -288,10 +288,10 @@ $ cargo run --release -- --frontend cli
Lan Mouse can be launched in daemon mode to keep it running in the background (e.g. for use in a systemd-service). Lan Mouse can be launched in daemon mode to keep it running in the background (e.g. for use in a systemd-service).
To do so, add `--daemon` to the commandline args: To do so, use the `daemon` subcommand:
```sh ```sh
lan-mouse --daemon lan-mouse daemon
``` ```
In order to start lan-mouse with a graphical session automatically, In order to start lan-mouse with a graphical session automatically,

View File

@@ -52,7 +52,7 @@ in {
}; };
Service = { Service = {
Type = "simple"; Type = "simple";
ExecStart = "${cfg.package}/bin/lan-mouse --daemon"; ExecStart = "${cfg.package}/bin/lan-mouse daemon";
}; };
Install.WantedBy = [ Install.WantedBy = [
(lib.mkIf config.wayland.windowManager.hyprland.systemd.enable "hyprland-session.target") (lib.mkIf config.wayland.windowManager.hyprland.systemd.enable "hyprland-session.target")
@@ -65,7 +65,7 @@ in {
config = { config = {
ProgramArguments = [ ProgramArguments = [
"${cfg.package}/bin/lan-mouse" "${cfg.package}/bin/lan-mouse"
"--daemon" "daemon"
]; ];
KeepAlive = true; KeepAlive = true;
}; };

View File

@@ -6,7 +6,7 @@ After=graphical-session.target
BindsTo=graphical-session.target BindsTo=graphical-session.target
[Service] [Service]
ExecStart=/usr/bin/lan-mouse --daemon ExecStart=/usr/bin/lan-mouse daemon
Restart=on-failure Restart=on-failure
[Install] [Install]