1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +00:00

add get title song spotify func

This commit is contained in:
Luna 2023-05-12 22:58:45 +02:00
parent 624b0cb856
commit a275f515a4

View file

@ -19,6 +19,11 @@ escfpath(){
printf "%q\n" "$(realpath "$1")" 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 if [[ ! -z "NOTICA_URL" ]]; then
notica() { curl --data "d:$*" "$NOTICA_URL" ; } notica() { curl --data "d:$*" "$NOTICA_URL" ; }
fi fi