https://github.com/stuartleeks/wsl-notify-send
WSL replacement for notify-send
https://github.com/stuartleeks/wsl-notify-send
Last synced: 7 months ago
JSON representation
WSL replacement for notify-send
- Host: GitHub
- URL: https://github.com/stuartleeks/wsl-notify-send
- Owner: stuartleeks
- License: mit
- Created: 2021-05-24T07:45:17.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T05:44:38.000Z (almost 2 years ago)
- Last Synced: 2024-12-26T08:27:40.473Z (over 1 year ago)
- Language: Dockerfile
- Size: 335 KB
- Stars: 129
- Watchers: 3
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wsl-notify-send
`wsl-notify-send` provides a Windows executable that is intended to be a replacement for the [Linux `notify-send` utility](https://ss64.com/bash/notify-send.html).
`wsl-notify-send` is implemented using [go-toast/toast](https://github.com/go-toast/toast) and if you have control over the script calling `notify-send`, you will find that the `toast` CLI gives you more control over the notifications. Also checkout the [stuartleeks/toast](https://github.com/stuartleeks/toast) fork which includes a change to hide the console window when the app runs.
## Installation
### Download wsl-notify-send
- Grab the latest release for your platform from https://github.com/stuartleeks/wsl-notify-send/releases
- Extract wsl-notify-send.exe from the downloaded zip and ensure that it is in your `PATH`
### Create the `notify-send` helper
In WSL, create a `notify-send` function that calls `wsl-notify-send`:
```bash
notify-send() { wsl-notify-send.exe --category $WSL_DISTRO_NAME "${@}"; }
```
### Testing
In WSL, run `notify-send "Hello from WSL"` and you should see a Windows toast notification!