all repos — dotfiles @ 14acc68594f8824a40ba10b96037dded76ad69c5

linux dotfiles

bin/scripts/shiori-menu

#!/bin/bash

url=$(printf "" | dmenu -p URL)
tags=$(printf "" | dmenu -p tags)
archive=$(printf "yes\nno" | dmenu -p archive )

if [ $archive = "yes" ]
then
    aopt=""
elif [ $archive = "no" ]
then
    aopt="--no-archival"
fi

if [ "$url" ]
then
    if [ "$tags" ]
    then
        ssh inty "shiori add $aopt -t \"$tags\" $url"
    else
        ssh inty "shiori add $aopt $url"
    fi
fi