From: Andrew Lorimer Date: Wed, 4 Jul 2018 04:28:29 +0000 (+1000) Subject: finalise i3blocks-music, fix spelling in duckduckget X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/fba9ea1185993be8eb674e59e75f8cceec7881bd?ds=inline;hp=--cc finalise i3blocks-music, fix spelling in duckduckget --- fba9ea1185993be8eb674e59e75f8cceec7881bd 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