… | |
… | |
53 | || "rcp -p % ruth:/var/www/www.ta-sa.org/files/txt/"; |
53 | || "rcp -p % ruth:/var/www/www.ta-sa.org/files/txt/"; |
54 | |
54 | |
55 | $pastebin_url = $self->x_resource ("selection-pastebin.url") |
55 | $pastebin_url = $self->x_resource ("selection-pastebin.url") |
56 | || "http://www.ta-sa.org/files/txt/%"; |
56 | || "http://www.ta-sa.org/files/txt/%"; |
57 | |
57 | |
58 | push @urxvt::ext::selection_popup::hook, sub { |
|
|
59 | ("pastebin upload" => sub { $self->upload_paste }) |
|
|
60 | }; |
|
|
61 | |
|
|
62 | () |
58 | () |
63 | } |
59 | } |
|
|
60 | |
|
|
61 | push @urxvt::ext::selection_popup::hook, sub { |
|
|
62 | ("pastebin upload" => sub { $self->upload_paste }) |
|
|
63 | }; |
64 | |
64 | |
65 | sub on_keyboard_command { |
65 | sub on_keyboard_command { |
66 | my ($self, $cmd) = @_; |
66 | my ($self, $cmd) = @_; |
67 | |
67 | |
68 | if ($cmd eq "selection-pastebin:remote-pastebin") { |
68 | if ($cmd eq "selection-pastebin:remote-pastebin") { |