#!/usr/bin/env bash set -e # Nomarchy Font Helper # Usage: nomarchy-font [selector|set |list] COMMAND="$1" case "$COMMAND" in set) shift nomarchy-font-set "$@" ;; list) nomarchy-font-list ;; selector|*) theme=$(echo -e "$(nomarchy-font-list)" | nomarchy-launch-walker --dmenu --width 350 -p "Font...") if [[ -n "$theme" && "$theme" != "CNCLD" ]]; then nomarchy-font-set "$theme" fi ;; esac