diff --git a/.gitmodules b/.gitmodules index f89cba0..846c456 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "src/.local/bin/calcpy"] path = src/.local/bin/calcpy url = https://github.com/idanpa/calcpy +[submodule "src/.local/bin/pyinstantref"] + path = src/.local/bin/pyinstantref + url = https://github.com/dogeystamp/pyinstantref diff --git a/programs b/programs index 056e45a..e1dbd4d 100644 --- a/programs +++ b/programs @@ -113,6 +113,12 @@ typst ipython python-sympy +# .local/bin/pyinstantref script +python-pydbus +xorg-xprop +xdotool +xsel + # inkscape shortcut manager python-xlib diff --git a/src/.config/mimeapps.list b/src/.config/mimeapps.list index a9f1c64..f955cc2 100644 --- a/src/.config/mimeapps.list +++ b/src/.config/mimeapps.list @@ -1,3 +1,4 @@ [Default Applications] application/pdf=org.pwmt.zathura.desktop +x-scheme-handler/pdfref=copy_ref diff --git a/src/.config/zathura/zathurarc b/src/.config/zathura/zathurarc index 69ffc7b..60a8b4a 100644 --- a/src/.config/zathura/zathurarc +++ b/src/.config/zathura/zathurarc @@ -11,3 +11,5 @@ set inputbar-fg "#CCCCCC" set statusbar-bg "#000000" set selection-clipboard clipboard + +map exec copy_ref diff --git a/src/.local/bin/pyinstantref b/src/.local/bin/pyinstantref new file mode 160000 index 0000000..c189dcd --- /dev/null +++ b/src/.local/bin/pyinstantref @@ -0,0 +1 @@ +Subproject commit c189dcde7566bcbab35c288442e338df8ff25215 diff --git a/src/.local/share/applications/pdfref.desktop b/src/.local/share/applications/pdfref.desktop new file mode 100644 index 0000000..9c60dcf --- /dev/null +++ b/src/.local/share/applications/pdfref.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=PDF Instant Reference +Exec=pdfref_handler +Type=Application +Terminal=false +MimeType=x-scheme-handler/pdfref; diff --git a/src/.profile b/src/.profile index b1ea773..8426356 100644 --- a/src/.profile +++ b/src/.profile @@ -76,6 +76,7 @@ export TYPST_ROOT="$HOME/nt" export PATH="$PATH":~/.local/bin export PATH="$PATH":~/.local/bin/deskutils export PATH="$PATH":~/.local/bin/deskutils/soundboard +export PATH="$PATH":~/.local/bin/pyinstantref export PATH="$PATH":"$XDG_DATA_HOME"/npm/bin export PATH="$PATH":"$XDG_DATA_HOME"/go/bin