Created
August 20, 2014 16:43
-
-
Save j0lly/f99df5b9676faf2e231b to your computer and use it in GitHub Desktop.
grab urxvt signals and print notifications and sounds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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