summaryrefslogtreecommitdiff
path: root/lib/App/Raps2.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Raps2.pm')
-rw-r--r--lib/App/Raps2.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/App/Raps2.pm b/lib/App/Raps2.pm
index d13aaed..f6a675b 100644
--- a/lib/App/Raps2.pm
+++ b/lib/App/Raps2.pm
@@ -134,11 +134,13 @@ sub create_defaults {
my $cost = $self->{default}{cost} // 12;
my $pwgen_cmd = $self->{default}{pwgen_cmd} // 'pwgen -s 23 1';
+ my $xclip_cmd = $self->{default}{xclip_cmd} // 'xclip -l 1';
write_file(
$self->{xdg_conf} . '/defaults',
"cost = ${cost}\n",
"pwgen_cmd = ${pwgen_cmd}\n",
+ "xclip_cmd = ${xclip_cmd}\n",
);
return;
@@ -151,6 +153,7 @@ sub load_defaults {
$self->{default}{cost} //= $cfg->{_}->{cost};
$self->{default}{pwgen_cmd} //= $cfg->{_}->{pwgen_cmd};
+ $self->{default}{xclip_cmd} //= $cfg->{_}->{xclip_cmd};
return;
}