Skip to content

Commit

Permalink
readme: updated install instruction for ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
luisnquin committed Apr 5, 2024
1 parent e53e2fc commit 8fcb184
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ Adjust the values to suit your preferences.
<br>

```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
```

</details>
Expand Down

0 comments on commit 8fcb184

Please sign in to comment.