From 8fcb184cbc66f02c50ac95a4a1fc4d835eee2a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Qui=C3=B1ones?= Date: Fri, 5 Apr 2024 06:35:43 -0500 Subject: [PATCH] readme: updated install instruction for ubuntu --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aeeb288..bf298db 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,16 @@ Adjust the values to suit your preferences.
```sh +$ git clone https://github.com/luisnquin/battery-notifier.git +$ cd battery-notifier # Install necessary build dependencies. -$ apt-get install cmake git -y +$ apt update && apt install cmake g++ cargo -y # Install the program binary. Default location is $HOME/.cargo/bin. $ cargo install --path . +# Install systemd unit in your computer +$ mkdir -p $HOME/.config/systemd/user/ +$ sed 's#ExecStart=battery-notifier#ExecStart=$HOME/.cargo/bin/battery-notifier#' systemd/battery-notifier.service > "$HOME/.config/systemd/user/battery-notifier.service" +$ systemctl --user enable battery-notifier.service ```