Compare commits
4 Commits
5374bcadee
...
4efdbc6d43
Author | SHA1 | Date | |
---|---|---|---|
4efdbc6d43 | |||
400c7f34e4 | |||
7d1bb73815 | |||
0c1c03f0e0 |
@ -26,16 +26,18 @@
|
||||
separator_color = frame
|
||||
gap_size = 5
|
||||
|
||||
origin = top-right
|
||||
offset = 30x30
|
||||
frame_width = 1
|
||||
|
||||
origin = bottom-right
|
||||
offset = 60x70
|
||||
|
||||
[urgency_low]
|
||||
background = "#000000"
|
||||
background = "#000000aa"
|
||||
foreground = "#dddddd"
|
||||
timeout = 10
|
||||
|
||||
[urgency_normal]
|
||||
background = "#000000"
|
||||
background = "#000000aa"
|
||||
foreground = "#ffffff"
|
||||
timeout = 10
|
||||
|
||||
|
@ -29,4 +29,4 @@ function TypstWatch()
|
||||
endfunc
|
||||
nnoremap <silent><leader>fc :call TypstWatch()<cr>
|
||||
|
||||
au Filetype FILETYPE let b:AutoPairs = {"(": ")"}
|
||||
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$'}
|
||||
|
@ -51,7 +51,7 @@ snippet proj "template for project documents" bi
|
||||
endsnippet
|
||||
|
||||
snippet ss "superscript" i
|
||||
^$1
|
||||
^($1)
|
||||
endsnippet
|
||||
|
||||
snippet link "link" w
|
||||
|
@ -58,12 +58,14 @@ r.encoding = "utf-8"
|
||||
print(r.text)
|
||||
EOF`
|
||||
|
||||
printf "\n\nResult (copied to clipboard):\n\n"
|
||||
|
||||
python -c "$c" "$TMPF" \
|
||||
| tee "$XDG_CACHE_HOME"/msrec.out \
|
||||
| jq -r '"https://youtube.com/watch?v=" + .metadata.music[-1].external_metadata.youtube.vid' \
|
||||
| tee /dev/tty \
|
||||
| xsel -ib
|
||||
> "$XDG_CACHE_HOME"/msrec.out
|
||||
|
||||
printf "\n\nRaw output:\n"
|
||||
cat "$XDG_CACHE_HOME"/msrec.out | jq
|
||||
|
||||
printf "Links:\n"
|
||||
cat "$XDG_CACHE_HOME"/msrec.out \
|
||||
| jq -r '"https://youtu.be/" + .metadata.music[].external_metadata.youtube.vid'
|
||||
|
||||
rm "$TMPF"
|
||||
|
Loading…
x
Reference in New Issue
Block a user