summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2018-03-31 16:17:21 +0200
committerRasmus Steinke <rasi@xssn.at>2018-03-31 16:17:21 +0200
commit33273099cb81eb098e77559f20c331b3a6908f63 (patch)
treee6f4b384b97ac5f13354145691d2464dd660eb25
parente5403e0c2168f97af5bd941d372ccc65b8f36402 (diff)
downloadclerk-33273099cb81eb098e77559f20c331b3a6908f63.tar.gz
clerk-33273099cb81eb098e77559f20c331b3a6908f63.tar.bz2
fix time for notifications
-rwxr-xr-xclerk.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/clerk.pl b/clerk.pl
index 6cb342c..7053e2c 100755
--- a/clerk.pl
+++ b/clerk.pl
@@ -249,10 +249,11 @@ sub renew_db {
my $mpd_stats = $mpd->stats();
my $songcount = $mpd_stats->{songs};
my $times = int($songcount / $rvar{chunksize} + 1);
-
+
if ($rvar{backend} eq "rofi") {
- system('notify-send', '-t', '5', 'clerk', 'Updating Cache File');
+ system('notify-send', '-t', '5000', 'clerk', 'Updating Cache File');
}
+
elsif ($rvar{backend} eq "fzf") {
print STDERR "::: No cache found or cache file outdated\n";
print STDERR "::: Chunksize set to $rvar{chunksize} songs\n";