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

Comparing rxvt-unicode/src/perl/kuake (file contents):
Revision 1.2 by sf-exg, Sun Nov 20 11:09:22 2011 UTC vs.
Revision 1.3 by root, Sun Jun 10 17:31:53 2012 UTC

1#! perl 1#! perl
2
3=head1 NAME
4
5 kuake<hotkey> - kuake-like hotkey terminal
6
7=head1 DESCRIPTION
8
9A very primitive quake-console-like extension. It was inspired by a
10description of how the programs C<kuake> and C<yakuake> work: Whenever the
11user presses a global accelerator key (by default C<F10>), the terminal
12will show or hide itself. Another press of the accelerator key will hide
13or show it again.
14
15Initially, the window will not be shown when using this extension.
16
17This is useful if you need a single terminal that is not using any desktop
18space most of the time but is quickly available at the press of a key.
19
20The accelerator key is grabbed regardless of any modifiers, so this
21extension will actually grab a physical key just for this function.
22
23If you want a quake-like animation, tell your window manager to do so
24(fvwm can do it).
25
26=cut
2 27
3sub on_start { 28sub on_start {
4 my ($self) = @_; 29 my ($self) = @_;
5 30
6 $self->{key} = $self->{argv}[0] || "F10"; 31 $self->{key} = $self->{argv}[0] || "F10";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines