Skip to content

Virkkunen/notisend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notisend

A wrapper to send command outputs as a notification to ntfy

Documentation and usage

To receive notifications, first you need to download ntfy and subscribe to a topic of your choosing.

Options

-h, --help: Show the help message.

-v, --version: Show the version information.

-s, --show-config: Show the current configuration.

--create-config: Force creation of a new configuration file.

-p, --priority <1-5>: Set the notification priority.

-e, --emojis <tag>: Set the notification tags (emojis).

-t, --topic: Set the notification topic.

-o, --host: Set the host.

Configuration

Configuration is stored in $HOME/.config/notisend.conf

If the file does not exist, it will be created interactively when running a command, or you can use --create-config.

Check the example config for details.

Check ntfy documentation for tags and priorities

Examples

notisend sleep 5

notisend -p 4 -t "computer" yay -Syu

notisend -c

notisend --create-config

Installation

Using cURL

curl -fsSL https://github.com/Virkkunen/notisend/releases/latest/download/notisend -o ~/.local/bin/notisend
chmod +x ~/.local/bin/notisend

Using wget

wget -qO ~/.local/bin/notisend https://github.com/Virkkunen/notisend/releases/latest/download/notisend
chmod +x ~/.local/bin/notisend

Specific version

  • Download the versioned release from GitHub releases
  • Extract the script
  • Move to ~/.local/bin, /usr/local/bin or /usr/bin
  • Make the file executable with chmod +x notisend

About

A wrapper to send command outputs as a notification to ntfy

Topics

Resources

License

Stars

Watchers

Forks

Languages