From 02446ea71c3a37dca44316ed42b00e22692e34b9 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 15 Jul 2025 17:56:01 -0500 Subject: Replace all menus with dmenu --- dmenu_books | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'dmenu_books') diff --git a/dmenu_books b/dmenu_books index 8017437..3b6f1fe 100755 --- a/dmenu_books +++ b/dmenu_books @@ -9,16 +9,8 @@ while getopts "hd:" o; do case "${o}" in *) printhelp ;; esac done -if [ -n "$WAYLAND_DISPLAY" ]; then - DMENU="tofi" - DEFARGS="-c $HOME/.config/tofi/themes/dmenu_vertical --prompt-text" -elif [ -n "$DISPLAY" ]; then - DMENU="dmenu" - DEFARGS="-l 15 -p" -else - print "Can't tell if Wayland or X; what gives?\n" - exit 1 -fi +DMENU="dmenu" +DEFARGS="-l 15 -p" BOOK=`ls ~/Documents/shared | $DMENU $DEFARGS \"books\" $ARGS` -- cgit v1.2.3