From a275f515a4fa9bb451a7913e01eedd0dd7ca28c7 Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Fri, 12 May 2023 22:58:45 +0200 Subject: [PATCH] add get title song spotify func --- .zsh/func.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zsh/func.zsh b/.zsh/func.zsh index 7c805a6..68c42e1 100644 --- a/.zsh/func.zsh +++ b/.zsh/func.zsh @@ -19,6 +19,11 @@ escfpath(){ printf "%q\n" "$(realpath "$1")" } +# Need to have spotify url in clipboard +getSpotifyTitle(){ + curl -s $(xclip -o) | fq -r .html.head.title +} + if [[ ! -z "NOTICA_URL" ]]; then notica() { curl --data "d:$*" "$NOTICA_URL" ; } fi \ No newline at end of file