From fba9ea1185993be8eb674e59e75f8cceec7881bd Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Wed, 4 Jul 2018 14:28:29 +1000 Subject: [PATCH 1/1] finalise i3blocks-music, fix spelling in duckduckget --- duckduckget.sh | 2 +- i3blocks-music.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/duckduckget.sh b/duckduckget.sh index 3999cba..f8a5ae5 100755 --- a/duckduckget.sh +++ b/duckduckget.sh @@ -11,7 +11,7 @@ filetype="" if (($# == 0 )) then printf "\n\x1b[31mWrong number of arguments\x1b[0m\n\n" - printf "Usage: duckduckget SITE [FILETYPE] [DESTINATION] \n where SITE is the domain to search for files\n [FILETYPE] is extension without preceeding dot\n [DESTINATION] is the output directory relative to working directory" + printf "Usage: duckduckget SITE [FILETYPE] [DESTINATION] \n where SITE is the domain to search for files\n [FILETYPE] is extension without preceding dot\n [DESTINATION] is the output directory relative to working directory" exit 1 fi diff --git a/i3blocks-music.pl b/i3blocks-music.pl index 4d6ab27..6a8cc72 100755 --- a/i3blocks-music.pl +++ b/i3blocks-music.pl @@ -27,7 +27,7 @@ my $artist = qx(playerctl $player_arg metadata artist); push(@metadata, $artist) if $artist; my $title = qx(playerctl $player_arg metadata title); -$title =~ s/(\s|\s\()[Ff]([et]at[. ].*|t.*//; +$title =~ s/(\s|\s\()[Ff]([et]at[. ].*|t.*)//; push(@metadata, $title) if $title; # Print stuff -- 2.43.2