# netstate **Repository Path**: mirrors_mtth/netstate ## Basic Information - **Project Name**: netstate - **Description**: systemd-networkd hooks - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-06 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # `netstate(1)` Run hooks on network state changes under `systemd-networkd`. ## Quickstart `netstate` can be installed from the [AUR][]. The package includes a suitable systemd unit file: ```sh systemctl enable --user netstate ``` Executable files in `$XDG_DATA_HOME/netstate/hooks.d` will then be automatically invoked on connectivity changes. For example, you can get a notification each time with the following script: ```sh # $XDG_DATA_HOME/netstate/hooks.d/10-notify.sh notify-send -a netstate "Network state: $1" ``` See `man netstate` for more information. [AUR]: https://aur.archlinux.org/packages/netstate