e JSON::Karabiner::Manipulator::Conditions::Device_unless ;
$JSON::Karabiner::Manipulator::Conditions::Device_unless::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use parent 'JSON:
tion
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Conditions::Device_unless - definition for device_unless condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCRIPTION
=he
JSON::Karabiner::Manipulator::Conditions::Frontmost_application_unless ;
$JSON::Karabiner::Manipulator::Conditions::Frontmost_application_unless::VERSION = '0.018';
use strict;
use warnings;
use JSON
use parent 'JSON::Karabiner::Manipulator::Conditions::Frontmost_application_if';
# ABSTRACT: definition for Frontmost_application_unless condition
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::
pplication_unless - definition for Frontmost_application_unless condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCRIPTION
=head3 method1()
=head3 method2()
=head1 VERSION
version 0.01
package Data::AnyXfer::Elastic::Import::File::Format::JSON;
use Moo;
use MooX::Types::MooseLike::Base qw(:all);
use Data::AnyXfer::JSON ( );
with 'Data::AnyXfer::Elastic::Import::File::Format';
=
yXfer::Elastic::Import::File::Format::JSON -
Elasticsearch import data storage format using JSON
=head1 SYNOPSIS
# data to printable characters
my $json_string = $format->serialise($data);
$format->deserialise($json_string);
=head1 DESCRIPTION
This class can be supplied to a
L<Data::AnyXfer::Elastic::Import::File> implementation
to store and retrieve data in JSON format from a storage
rom::JSON;
use v5.16.3;
use Moo::Role;
use MooX::Types::MooseLike::Base qw(:all);
use Carp;
use Path::Class;
use Data::AnyXfer::JSON qw/ decode_json /;
=head1 NAME
Data::AnyXfer::From::JSON - tr
ansfer from json sources
=head1 SYNOPSIS
use Moo;
use MooX::Types::MooseLike::Base qw(:all);
extends 'Data::AnyXfer';
with 'Data::AnyXfer::From::JSON';
...
# Path::Class::Fil
e
has '+json' => ( default => sub { file('example.json'); } );
# Json string
has '+json' => ( default => sub { return '{"documents": [{"author": "Douglas Adams"}]'});
# Direct hash s
package JSON::Karabiner::Rule ;
$JSON::Karabiner::Rule::VERSION = '0.018';
use strict;
use warnings;
require JSON::Karabiner::Manipulator ;
use Carp;
sub new {
my $class = shift;
my $desc = shift
;
croak 'JSON::Karabiner constructor requires a desc.' if !$desc;
my $self = {
description => $desc,
manipulators => []
};
bless $self, $class;
return $self;
}
sub _disable_validity
lator {
my $s = shift;
my $manip = JSON::Karabiner::Manipulator->new_manipulator();
push @{$s->{manipulators}}, $manip;
return $manip;
}
sub TO_JSON { return { %{ shift() } }; }
# ABSTRAC
package JSON::Karabiner::Manipulator::Conditions::Variable_unless ;
$JSON::Karabiner::Manipulator::Conditions::Variable_unless::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use par
dition
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Conditions::Variable_unless - action variable_unless condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCRIPTION
=head
ckage JSON::Karabiner::Manipulator::Conditions::Device_if ;
$JSON::Karabiner::Manipulator::Conditions::Device_if::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use parent 'JSON::Kar
t;
croak ('No description passed.') unless $desc;
$s->{data}{description} = $desc;
}
sub TO_JSON {
my $obj = shift;
my $name = $obj->{def_name};
my $value = $obj->{data};
my %super_hash
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Conditions::Device_if - definition for Frontmost_application_if condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCRIPTION
age JSON::Karabiner::Manipulator::Conditions::Variable_if ;
$JSON::Karabiner::Manipulator::Conditions::Variable_if::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use parent 'JSON::K
t;
croak ('No description passed.') unless $desc;
$s->{data}{description} = $desc;
}
sub TO_JSON {
my $obj = shift;
my $name = $obj->{def_name};
my $value = $obj->{data};
my %super_hash
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Conditions::Variable_if - definition for Frontmost_application_if condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCRIPTION
package JSON::Karabiner::Manipulator::Conditions ;
$JSON::Karabiner::Manipulator::Conditions::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
sub new {
my $class = shift;
my $ty
;
{
no warnings 'once';
$main::current_condition = $self;
}
return $self;
}
sub TO_JSON {
my $obj = shift;
my $name = $obj->{def_name};
my $value = $obj->{data};
my @data_hash =
super_hash };
}
# ABSTRACT: parent class for condition classes
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Conditions - parent class for condition classes
=head1 SYNOPSIS
# ad
ackage JSON::Karabiner::Manipulator::Actions::To_if_alone ;
$JSON::Karabiner::Manipulator::Actions::To_if_alone::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use parent 'JSON::Kara
action class
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Actions::To_if_alone - to_if_alone action class
=head1 SYNOPSIS
use JSON::Karabiner;
my $to_if_alone_action = $manip
PTION
See L<JSON::Karabiner::Manipulator::Actions::To> for documentation of this
class' methods.
See L<the official Karabiner documentation|https://karabiner-elements.pqrs.org/docs/json/complex-modi
package JSON::Karabiner::Manipulator::Conditions::Keyboard_type_if ;
$JSON::Karabiner::Manipulator::Conditions::Keyboard_type_if::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use p
t;
croak ('No description passed.') unless $desc;
$s->{data}{description} = $desc;
}
sub TO_JSON {
my $obj = shift;
my $name = $obj->{def_name};
my $value = $obj->{data};
my %super_hash
n
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Conditions::Keyboard_type_if - definition for keyboard_type_if condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCRIPTION
package JSON::Karabiner::Manipulator::Conditions::Keyboard_type_unless ;
$JSON::Karabiner::Manipulator::Conditions::Keyboard_type_unless::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Car
p;
use parent 'JSON::Karabiner::Manipulator::Conditions::Keyboard_type_if';
#ABSTRACT: definition for keyboard_type_unless condition
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Con
ons::Keyboard_type_unless - definition for keyboard_type_unless condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCRIPTION
=head3 method1()
=head3 method2()
=head1 VERSION
version 0.01
package JSON::Karabiner::Manipulator::Actions::To ;
$JSON::Karabiner::Manipulator::Actions::To::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use parent 'JSON::Karabiner::Manipulato
key_code;
$hash{lazy} = JSON::true if $letter_code && $letter_code eq 'L';
$hash{halt} = JSON::true if $letter_code && $letter_code eq 'H';
$hash{repeat} = JSON::true if $letter_code && $l
$lkc->{modifiers} = $existing;
}
# ABSTRACT: To action object
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Actions::To - To action object
=head1 SYNOPSIS
add_action 'to';
#
kage JSON::Karabiner::Manipulator::Conditions::Frontmost_application_if ;
$JSON::Karabiner::Manipulator::Conditions::Frontmost_application_if::VERSION = '0.018';
use strict;
use warnings;
use JSON;
us
e Carp;
use parent 'JSON::Karabiner::Manipulator::Conditions';
sub new {
my $class = shift;
my ($type, $value) = @_;
my $obj = $class->SUPER::new($type, $value);
$obj->{data} = $value || [],
_END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Conditions::Frontmost_application_if - definition for Frontmost_application_if condition
=head1 SYNOPSIS
use JSON::Karabiner;
=head1 DESCR
package JSON::Karabiner ;
$JSON::Karabiner::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use File::HomeDir;
use JSON::Karabiner::Rule;
sub new {
my $class = shift;
my $title =
'JSON::Karabiner constructor requires a title for the modification.' if !$title;
croak 'JSON::Karabiner constructor requires a file name.' if !$file;
croak 'File names are required to have a .json
extenstion' if $file !~ /\.json$/;
my $home = File::HomeDir->my_home;
my $self = {
_file => $file,
_mod_file_dir => $opts->{mod_file_dir} || "$home/.config/karabiner/assets/complex_modifi
package JSON::Karabiner::Manipulator::Actions::To_delayed_if_canceled ;
$JSON::Karabiner::Manipulator::Actions::To_delayed_if_canceled::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use parent 'JSON::Karabiner::Manipulator::Actions::To';
sub new {
my $class = shift;
my ($type, $value) = @_;
my $has_delayed_action;
{ no warnings 'once';
$has_delayed_action = $main::h
obj;
return $obj;
}
# ABSTRACT: to_delayed_if_canceled action
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Actions::To_delayed_if_canceled - to_delayed_if_canceled action
=head1
package JSON::Karabiner::Manipulator::Actions ;
$JSON::Karabiner::Manipulator::Actions::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
sub new {
my $class = shift;
my $type = sh
1 NAME
JSON::Karabiner::Manipulator::Actions - parent class for action classes
=head1 DESCRIPTION
Please see the documentation for the
L<JSON::Karabiner::Manipulator::Actions::To> and
L<JSON::Karab
new($type)
=head3 add_consumer_key_code(@values)
=head3 add_pointing_button(@values)
=head3 TO_JSON()
=head1 VERSION
version 0.018
=head1 AUTHOR
Steve Dondley <s@dondley.com>
=head1 COPYRIGHT
ge JSON::Karabiner::Manipulator::Actions::To_after_key_up ;
$JSON::Karabiner::Manipulator::Actions::To_after_key_up::VERSION = '0.018';
use strict;
use warnings;
use JSON;
use Carp;
use parent 'JSON::
alue || [],
return $obj;
}
# ABSTRACT: to_after_key_up action
1;
__END__
=pod
=head1 NAME
JSON::Karabiner::Manipulator::Actions::To_after_key_up - to_after_key_up action
=head1 DESCRIPTION
I
package MPV::Simple::JSON;
use strict;
use warnings;
use IO::Handle;
use IO::Socket::UNIX;
use JSON;
use File::Temp qw(tempdir);
require Exporter;
our @ISA = qw(Exporter);
# Items to export into
};
my $json =to_json($hash);
my $client = $obj->{client};
print $client $json."\n";
my $reader = $obj->{reader};
my $ret = <$reader>;
$ret = from_json($ret);
ret
};
my $json =to_json($hash);
my $client = $obj->{client};
print $client $json."\n";
my $reader = $obj->{reader};
my $ret = <$reader>;
$ret = from_json($ret);
ret
package JSON::RPC2::AnyEvent::Server::Handle;
use 5.010;
use strict;
use warnings;
our $VERSION = "0.03";
use AnyEvent::Handle;
use Carp qw(croak);
use Errno ();
use JSON;
use Scalar::Util qw(blesse
e openhandle);
use JSON::RPC2::AnyEvent::Server;
use JSON::RPC2::AnyEvent::Constants qw(ERR_PARSE_ERROR);
sub new {
my ($class, $srv, $hdl) = @_;
croak "Not an JSON::RPC2::AnyEvent::Se
rver object: $srv" unless blessed $srv && $srv->isa('JSON::RPC2::AnyEvent::Server');
unless ( blessed $hdl && $hdl->isa('AnyEvent::Handle') ) {
$hdl = openhandle $hdl or croak "Neit