Skip to content

Commit

Permalink
Merge pull request #9 from luisnquin/readme/ubuntu-install
Browse files Browse the repository at this point in the history
readme: updated install instruction for ubuntu
  • Loading branch information
luisnquin committed Apr 5, 2024
2 parents e53e2fc + 8fcb184 commit 0b4cde8
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 0b4cde8

Please sign in to comment.