Compare commits

..

5 Commits

6 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,3 @@
[Default Applications]
application/pdf=org.pwmt.zathura.desktop

View File

@ -263,10 +263,16 @@ if $SYSTEM_PROFILE == "DEFAULT"
let g:ackprg = 'rg --vimgrep --smart-case'
endif
" URL motions
Plug 'axieax/urlview.nvim'
" fancy motions
Plug 'ggandor/leap.nvim'
" bracket closing
Plug 'jiangmiao/auto-pairs'
let g:AutoPairsShortcutToggle = "@@"
call plug#end()
if $SYSTEM_PROFILE == "DEFAULT"

View File

@ -8,6 +8,14 @@ snippet problem "template for problem notes" bi
endsnippet
snippet algs "template for compsci notes" bi
#import "../templates/algs.typ": template, source_code
#show: template.with(
title: "$1",
)
endsnippet
snippet math_prob "template for math problems" bi
#import "../../../templates/math_prob.typ": template
#show: template.with(
@ -23,6 +31,10 @@ snippet im "inline math" w
\$${1:${VISUAL}}\$
endsnippet
snippet link "link" w
#link("${1}")[${2}]
endsnippet
snippet fig "create new figure" bi
#figure(
image("fig/`!v expand("%:r")`/$1.svg"),

View File

@ -102,3 +102,7 @@ c.hints.selectors["code"] = [
"pre"
]
config.bind("cc", "hint code userscript code_select.py")
# use libre redirects
config.bind(",fl", "hint links userscript fixlink.sh")
config.bind(",fL", "hint links userscript fixlink.sh -t")

View File

@ -0,0 +1,22 @@
#!/bin/sh
# libredirect but scuffed and a qutebrowser userscript
#
# bind something like this in config.py
#
# config.bind(",fl", "hint links userscript fixlink.sh")
# config.bind(",fL", "hint links userscript fixlink.sh -t")
#
REDDIT="lr.mint.lgbt"
TWITTER="nitter.net"
# genius lyrics
GENIUS="sing.whatever.social"
YOUTUBE="yewtu.be"
LINK="$(printf "%s" "$QUTE_URL" | sed \
-e "s/www.reddit.com/$REDDIT/g" \
-e "s/twitter.com/$TWITTER/g" \
-e "s/genius.com/$GENIUS/g" \
-e "s/youtube.com/$YOUTUBE/g")"
echo "open $1 $LINK" >> "$QUTE_FIFO"

View File

@ -65,7 +65,7 @@ fi
# Profile to enable/disable features on certain devices
if [ ! -f "$XDG_CONFIG_HOME"/dot_profile ]; then
export SYSTEM_PROFILE="DEFAULT"
export SYSTEM_PROFILE="SLIM"
else
. "$XDG_CONFIG_HOME"/dot_profile
fi