Compare commits

..

4 Commits

Author SHA1 Message Date
4efdbc6d43
dunst: update config
transparency, put notifs on bottom right
2023-07-09 20:59:22 -04:00
400c7f34e4
nvim: typst superscript now adds parentheses 2023-07-09 13:08:26 -04:00
7d1bb73815
nvim: fix autopairs for typst 2023-07-09 10:12:24 -04:00
0c1c03f0e0
msrec: show all output by default 2023-07-08 22:34:32 -04:00
4 changed files with 16 additions and 12 deletions

View File

@ -26,16 +26,18 @@
separator_color = frame separator_color = frame
gap_size = 5 gap_size = 5
origin = top-right frame_width = 1
offset = 30x30
origin = bottom-right
offset = 60x70
[urgency_low] [urgency_low]
background = "#000000" background = "#000000aa"
foreground = "#dddddd" foreground = "#dddddd"
timeout = 10 timeout = 10
[urgency_normal] [urgency_normal]
background = "#000000" background = "#000000aa"
foreground = "#ffffff" foreground = "#ffffff"
timeout = 10 timeout = 10

View File

@ -29,4 +29,4 @@ function TypstWatch()
endfunc endfunc
nnoremap <silent><leader>fc :call TypstWatch()<cr> nnoremap <silent><leader>fc :call TypstWatch()<cr>
au Filetype FILETYPE let b:AutoPairs = {"(": ")"} au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$'}

View File

@ -51,7 +51,7 @@ snippet proj "template for project documents" bi
endsnippet endsnippet
snippet ss "superscript" i snippet ss "superscript" i
^$1 ^($1)
endsnippet endsnippet
snippet link "link" w snippet link "link" w

View File

@ -58,12 +58,14 @@ r.encoding = "utf-8"
print(r.text) print(r.text)
EOF` EOF`
printf "\n\nResult (copied to clipboard):\n\n"
python -c "$c" "$TMPF" \ python -c "$c" "$TMPF" \
| tee "$XDG_CACHE_HOME"/msrec.out \ > "$XDG_CACHE_HOME"/msrec.out
| jq -r '"https://youtube.com/watch?v=" + .metadata.music[-1].external_metadata.youtube.vid' \
| tee /dev/tty \ printf "\n\nRaw output:\n"
| xsel -ib 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" rm "$TMPF"