[urxvt] add extensions

legacy
Simon Bruder 2018-05-20 17:56:57 +00:00
parent ca7a690eff
commit ddc3124daf
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
6 changed files with 39 additions and 0 deletions

6
.gitmodules vendored
View File

@ -4,3 +4,9 @@
[submodule "home/.tmux/plugins/tpm"]
path = home/.tmux/plugins/tpm
url = https://github.com/tmux-plugins/tpm
[submodule "home/.dynamic-colors"]
path = home/.dynamic-colors
url = https://github.com/sos4nt/dynamic-colors
[submodule "home/urxvt-font-size"]
path = urxvt-font-size
url = https://github.com/majutsushi/urxvt-font-size

1
home/.dynamic-colors Submodule

@ -0,0 +1 @@
Subproject commit 47a91bb6bf4091a282cc29aaf3375cdae1340ad0

17
home/.urxvt/ext/dynamic-colors Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/perl
sub on_start
{
my ($self) = @_;
my $output = `~/.dynamic-colors/bin/dynamic-colors init`;
$self->cmd_parse($output);
}
sub on_user_command
{
my ($self, $cmd) = @_;
if ($cmd eq "dynamic-colors:cycle") {
my ($self, $cmd) = @_;
my $output = `~/.dynamic-colors/bin/dynamic-colors cycle`;
$self->cmd_parse($output);
}
}

1
home/.urxvt/ext/font-size Symbolic link
View File

@ -0,0 +1 @@
../../../urxvt-font-size/font-size

13
home/.urxvt/ext/urxvtclip Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/perl
sub paste {
my ($self) = @_;
my $content = `/usr/bin/xclip -loop 1 -out -selection clipboard` ;
$self->tt_write ($content);
}
sub on_user_command {
my ($self, $cmd) = @_;
if ($cmd eq "clipboard:paste") {
$self->paste;
}
}

1
urxvt-font-size Submodule

@ -0,0 +1 @@
Subproject commit 0984499379e420de651dcfeedfbb7938867c44f8