diff --git a/.custom_bash_scripts b/.custom_bash_scripts index ab7f909..5df1461 100644 --- a/.custom_bash_scripts +++ b/.custom_bash_scripts @@ -81,9 +81,9 @@ viewmd() pdfname=$(basename $1 .md).pdf echo $pdfname if [ -f $pdfname ]; then - zathura $pdfname & disown + tzathura $pdfname else - pandoc -t pdf $1 | zathura - & disown + pandoc -t pdf $1 | tzathura - fi } @@ -95,4 +95,14 @@ makemd() pandoc -t pdf $1 -o $(basename $1 .md).pdf } +# view zathrua in tabbed +tzathura() +{ + # rm tabbbed.xid if not running + ! pgrep -f tabbed && rm /tmp/tabbed.xid + if [ ! -f /tmp/tabbed.xid ]; then + tabbed -c -d > /tmp/tabbed.xid + fi + zathura "$@" -e $(