Skip to content

Instantly share code, notes, and snippets.

@j0lly
Created August 20, 2014 16:43
Show Gist options
  • Save j0lly/f99df5b9676faf2e231b to your computer and use it in GitHub Desktop.
Save j0lly/f99df5b9676faf2e231b to your computer and use it in GitHub Desktop.
grab urxvt signals and print notifications and sounds
#!/usr/bin/perl
sub on_osc_seq_perl {
my ( $term, $osc, $resp ) = @_ ;
if ( $osc =~ /^notify;(\S+);(.*)$/ ) {
system ( "notify-send '$1' '$2'" ) ;
system ( "aplay /usr/share/skype/sounds/ChatIncoming.wav" )
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment