#!/bin/sh
#
# apps - launches a dmenu list of apps by type rather than by executable name
# apps are in .config/apps.conf. this is basically a "favorites bar"
#
# ---
# source: https://github.com/bpsuntrup/conf/blob/master/bin/apps

lines=$(wc -l "${HOME}/.config/apps.conf" | cut -d' ' -f1)
echo "${lines}"
# shellcheck disable=SC2002,SC2312
exec $(cat "${HOME}/.config/apps.conf" | dmenu -i -l "${lines}" | cut -d- -f2)
