Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xadada/notify-on-packetloss
Macos notifications when packetloss occurs
https://github.com/0xadada/notify-on-packetloss
anybar launchd macos macos-notification network packetloss shell wifi
Last synced: 6 days ago
JSON representation
Macos notifications when packetloss occurs
- Host: GitHub
- URL: https://github.com/0xadada/notify-on-packetloss
- Owner: 0xadada
- License: mit
- Created: 2020-03-23T20:44:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T19:40:56.000Z (about 4 years ago)
- Last Synced: 2024-10-18T08:24:54.269Z (4 months ago)
- Topics: anybar, launchd, macos, macos-notification, network, packetloss, shell, wifi
- Language: Shell
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# notify-on-packetloss.sh
_Send a macos notification when packetloss is detected._
This creates a macos macos launchd service that runs a bash script checking for
packetloss by pinging your internet gateway. When packetloss is detected, it'll
send a macos notification and severity color to anybar, and log to the system log.## Requirements
* Macos: High Sierra or greater.
* [Anybar](https://github.com/tonsky/AnyBar) (Optional, but works togther nicely)## Installation
```bash
mkdir -p nop && \
curl -#L https://github.com/0xadada/notify-on-packetloss/tarball/master | \
tar -xzv -C nop --strip-components=1
cd nop
./install.sh
```## Uninstallation
```bash
# remove the launchd service
launchctl remove pub.0xadada.notify-on-packetloss
# remove all associated files
rm \
"${HOME}/bin/notify-on-packetloss.sh" \
"${HOME}/Library/LaunchAgents/pub.0xadada.notify-on-packetloss.plist"
```