summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-08-06 00:08:04 +0200
committerRasmus Steinke <rasi@xssn.at>2017-08-06 00:08:04 +0200
commit34e4a9c670e4c53c8448c74fe6248fc1fc64bf46 (patch)
treeefac067b7fb32224acff35bfcbff8567c89e5b0d /clerk
parentd7d6a88168a4b9d91cda99e2931ceffc74ec3c26 (diff)
downloadperl-app-clerk-34e4a9c670e4c53c8448c74fe6248fc1fc64bf46.tar.gz
perl-app-clerk-34e4a9c670e4c53c8448c74fe6248fc1fc64bf46.tar.xz
exit clerk when using rofi interface
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk7
1 files changed, 7 insertions, 0 deletions
diff --git a/clerk b/clerk
index fc0551b..3630e81 100755
--- a/clerk
+++ b/clerk
@@ -262,10 +262,17 @@ sub list_db_entries_for {
);
my $output = $formater{$kind}->($rdb);
+ if ($backend eq "rofi") {
+ my $out = backend_call($output, $fields{$kind});
+ do_action($out, "tracks");
+ }
+ elsif ($backend eq "fzf") {
for (;;) {
my $out = backend_call($output, $fields{$kind});
do_action($out, "tracks");
+ }
}
+
}
main;