File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ python setup.py install --user
2525```
2626
2727## Usage
28+ ![ Usage Gif] ( https://raw.githubusercontent.com/goktug97/yet-another-spotify-lyrics/master/usage.gif )
2829
2930``` bash
3031spotify-lyrics
@@ -58,6 +59,22 @@ for_window [instance="Lyrics"] floating enable; [instance="Lyrics"] move positio
5859for_window [instance="Lyrics"] resize set 644 388
5960```
6061
62+ ### Example Use Case (Emacs)
63+ Open the lyrics in a buffer.
64+
65+ ``` emacs-lisp
66+ (defun spotify-lyrics ()
67+ (interactive)
68+ (let ((string (shell-command-to-string "spotify-lyrics-once")))
69+ (get-buffer-create "lyrics-buffer")
70+ (switch-to-buffer-other-window "lyrics-buffer")
71+ (with-current-buffer "lyrics-buffer"
72+ (goto-char (point-max))
73+ (erase-buffer)
74+ (insert string)
75+ (goto-line 1))))
76+ ```
77+
6178### Example Use Case (Conky)
6279You can use spotify-lyrics-once to output the lyrics to the stdout and exit.
6380If you have program that utilizes stdin, you can use this version.
You can’t perform that action at this time.
0 commit comments