This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.urxvt/ext/dynamic-colors

18 lines
359 B
Perl
Executable file

#!/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);
}
}