mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
update docs
This commit is contained in:
@@ -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).
|
||||
|
||||
To do so, add `--daemon` to the commandline args:
|
||||
To do so, use the `daemon` subcommand:
|
||||
|
||||
```sh
|
||||
lan-mouse --daemon
|
||||
lan-mouse daemon
|
||||
```
|
||||
|
||||
In order to start lan-mouse with a graphical session automatically,
|
||||
|
||||
@@ -52,7 +52,7 @@ in {
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${cfg.package}/bin/lan-mouse --daemon";
|
||||
ExecStart = "${cfg.package}/bin/lan-mouse daemon";
|
||||
};
|
||||
Install.WantedBy = [
|
||||
(lib.mkIf config.wayland.windowManager.hyprland.systemd.enable "hyprland-session.target")
|
||||
@@ -65,7 +65,7 @@ in {
|
||||
config = {
|
||||
ProgramArguments = [
|
||||
"${cfg.package}/bin/lan-mouse"
|
||||
"--daemon"
|
||||
"daemon"
|
||||
];
|
||||
KeepAlive = true;
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@ After=graphical-session.target
|
||||
BindsTo=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/lan-mouse --daemon
|
||||
ExecStart=/usr/bin/lan-mouse daemon
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user