Skip to content

Notifies you of long running commands completions for zsh

Notifications You must be signed in to change notification settings

Nanoseb/notifyosd.zsh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

notifyosd.zsh

Just like undistract-me, this notifies you when a long running command completes, but for zsh.

Installation

Just source notifyosd.zsh in your ~/.zshrc:

source path/to/notifyosd.zsh

Usage

Configuration is done with environment variables:

  • LONG_RUNNING_COMMAND_TIMEOUT: to change the timeout, the default being 10s
  • UDM_PLAY_SOUND: need to be set to a non zero value to play sound together with the notification
  • NOTIFYOSD_HUMAN: defines if human readable format should be adopted for the command duration, default is true, but can be disabled by setting this variable to 0.
  • LONG_RUNNING_IGNORE_LIST: is a shell array of command that will be ignored by the script

Note that a notification appears only if the terminal where the long command was running is not in focus.

Sounds support

On Debian, you will need those packages installed: sox gnome-control-center-data

About

Notifies you of long running commands completions for zsh

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Shell 100.0%