[urxvt] add extensions
This commit is contained in:
parent
ca7a690eff
commit
ddc3124daf
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -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
1
home/.dynamic-colors
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 47a91bb6bf4091a282cc29aaf3375cdae1340ad0
|
17
home/.urxvt/ext/dynamic-colors
Executable file
17
home/.urxvt/ext/dynamic-colors
Executable 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
1
home/.urxvt/ext/font-size
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../urxvt-font-size/font-size
|
13
home/.urxvt/ext/urxvtclip
Executable file
13
home/.urxvt/ext/urxvtclip
Executable 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
1
urxvt-font-size
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0984499379e420de651dcfeedfbb7938867c44f8
|
Reference in a new issue