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:
parent
624b0cb856
commit
a275f515a4
1 changed files with 5 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue