summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-10-01 11:23:12 +0200
committerRasmus Steinke <rasi@xssn.at>2017-10-01 11:23:12 +0200
commit3571e3740115719a64c820b02ed77e72422e55fe (patch)
treef4de9006e600777b909a348baa26ca0a477c97ba
parentc5f6b2285b851d88bd8430ec768c60ff0bd6602a (diff)
downloadperl-app-clerk-3571e3740115719a64c820b02ed77e72422e55fe.tar.gz
perl-app-clerk-3571e3740115719a64c820b02ed77e72422e55fe.tar.xz
fix wrong config name. enable option to jump to queue
-rwxr-xr-xclerk4
-rw-r--r--clerk.conf3
2 files changed, 5 insertions, 2 deletions
diff --git a/clerk b/clerk
index fa6d432..c625435 100755
--- a/clerk
+++ b/clerk
@@ -64,7 +64,7 @@ sub parse_config {
player => $g->{player},
tagging => $g->{tagging},
randomartist => $g->{randomartist},
- jump_query => $g->{jump_query}
+ jump_queue => $g->{jump_queue}
);
my $c = $cfg->param(-block=>'Columns');
@@ -393,7 +393,7 @@ sub tmux {
}
sub tmux_jump_to_queue_maybe {
- tmux qw/findw -t music queue/ if $rvar{jump_queue};
+ tmux qw/findw -t music queue/ if ($rvar{jump_queue} eq "true");
}
sub tmux_spawn_random_pane {
diff --git a/clerk.conf b/clerk.conf
index 18af1ec..16fb4ed 100644
--- a/clerk.conf
+++ b/clerk.conf
@@ -18,6 +18,9 @@ songs=20
# if mpd drops the connection while updating, reduce this.
chunksize=30000
+# enable this to jump to queue after adding songs in tmux ui.
+jump_queue=true
+
# Use albumartist or artist for random tracks?
randomartist=albumartist