summaryrefslogtreecommitdiff
path: root/lib/App/Raps2.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-21 16:53:18 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-21 16:53:18 +0200
commitc22143897b300085d7c8ef37e8fe4850a0c2aca2 (patch)
tree0539b1fff555f396aeabb9af4228ce1d6f4b3033 /lib/App/Raps2.pm
parent7e948f4248953e135ba9824e15801b313f69c9da (diff)
Make xclip command configurable (->chrome support)
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;
}