diff --git a/.gitmodules b/.gitmodules index 846c456..565bae9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "src/.local/bin/pyinstantref"] path = src/.local/bin/pyinstantref url = https://github.com/dogeystamp/pyinstantref +[submodule "src/.local/bin/inkscape-shortcut-manager"] + path = src/.local/bin/inkscape-shortcut-manager + url = https://github.com/dogeystamp/inkscape-shortcut-manager diff --git a/programs b/programs index eff1dc2..26a8f8c 100644 --- a/programs +++ b/programs @@ -122,6 +122,7 @@ xsel # inkscape shortcut manager python-xlib +pdf2svg chromium cargo diff --git a/src/.config/nvim/typst.vim b/src/.config/nvim/typst.vim index 2605265..2bf850b 100644 --- a/src/.config/nvim/typst.vim +++ b/src/.config/nvim/typst.vim @@ -7,7 +7,7 @@ function EditFig() let figure_fname = expand('') exec "silent !typst-figure " .. figure_fname vsp - exec "term inkscape-shortcut-manager" + exec "term inkscape-shortcut-single" quit endfunc diff --git a/src/.local/bin/inkscape-shortcut-manager b/src/.local/bin/inkscape-shortcut-manager deleted file mode 100755 index 203eeb2..0000000 --- a/src/.local/bin/inkscape-shortcut-manager +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -# wrapper to have a single instance of inkscape-shortcut-manager running - -if ! pgrep -f inkscape-shortcut-manager/main.py; then - # really hacky hardcoding of path here - # https://github.com/dogeystamp/inkscape-shortcut-manager - # clone this and point to its main.py - python3 ~/dox/proj/inkscape-shortcut-manager/main.py -fi diff --git a/src/.local/bin/inkscape-shortcut-manager b/src/.local/bin/inkscape-shortcut-manager new file mode 160000 index 0000000..04eeef7 --- /dev/null +++ b/src/.local/bin/inkscape-shortcut-manager @@ -0,0 +1 @@ +Subproject commit 04eeef7804c11374512e9347ab6996be1dd64a46 diff --git a/src/.local/bin/inkscape-shortcut-single b/src/.local/bin/inkscape-shortcut-single new file mode 100755 index 0000000..aef9720 --- /dev/null +++ b/src/.local/bin/inkscape-shortcut-single @@ -0,0 +1,8 @@ +#!/bin/sh +# hacky wrapper to have a single instance of inkscape-shortcut-manager running + +if ! pgrep -u "$USER" -f inkscape-shortcut-manager/main.py; then + # https://github.com/dogeystamp/inkscape-shortcut-manager + # clone this and point to its main.py + python3 ~/.local/bin/inkscape-shortcut-manager/main.py +fi