ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/bell-command
(Generate patch)

Comparing rxvt-unicode/src/perl/bell-command (file contents):
Revision 1.2 by root, Wed Jun 6 15:06:41 2012 UTC vs.
Revision 1.3 by root, Sun Jun 10 17:31:53 2012 UTC

16# with this program; if not, write to the Free Software Foundation, Inc., 16# with this program; if not, write to the Free Software Foundation, Inc.,
17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 18
19#:META:X_RESOURCE:%:string:the shell snippet to execute 19#:META:X_RESOURCE:%:string:the shell snippet to execute
20 20
21=head1 NAME
22
23 bell-command - execute a command when the bell rings
24
25=head1 DESCRPTION
26
27Runs the command specified by the C<URxvt.bell-command> resource when
28a bell event occurs. For example, the following pops up a notification
29bubble with the text "Beep, Beep" using notify-send:
30
31 URxvt.bell-command: notify-send "Beep, Beep"
32
33=cut
34
21sub on_start { 35sub on_start {
22 my ($self) = @_; 36 my ($self) = @_;
23 37
24 $self->{bell_cmd} = $self->x_resource ("bell-command"); 38 $self->{bell_cmd} = $self->x_resource ("bell-command");
25 39

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines