add spotify title paster
This commit is contained in:
parent
bc6ede5703
commit
a2308c46ef
@ -33,6 +33,7 @@ curl
|
||||
clipmenu
|
||||
yubikey
|
||||
emoji
|
||||
spotify-title
|
||||
HERE
|
||||
)"
|
||||
|
||||
@ -85,4 +86,7 @@ case "$choice" in
|
||||
choice="$(uni emoji all -f '%(name), %(cldr_full), %(emoji)' | awk -F', ' '{ i=1; while($i != $NF && $i != "") { print($i, $NF); i++ }}' | pick)"
|
||||
inject "${choice##* }"
|
||||
;;
|
||||
'spotify-title')
|
||||
inject "$(curl -L "$(xclip -o)" | sed -n 's@.*<title>\(.*\) - song by \(.*\) | Spotify</title>.*@\1 - \2@p')"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user