#! /bin/bash
notebook="$(joplin ls / --sort updated_time | dmenu -i -l 30)"
[ -z "$notebook" ] && exit 1;
joplin use "$notebook"
joplin