From b49fbd12bd77f379fc1bf466531dec20658f7540 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 6 Aug 2023 22:55:00 -0500 Subject: Fully replace bemenu with tofi --- mprisctl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mprisctl') diff --git a/mprisctl b/mprisctl index 0685de7..ce03642 100755 --- a/mprisctl +++ b/mprisctl @@ -6,7 +6,7 @@ printhelp () { while getopts "hwxd:" o; do case "${o}" in w) - DMENU="bemenu" + DMENU="tofi" ;; x) DMENU="dmenu" @@ -17,16 +17,18 @@ esac done if [ -z "$DMENU" ]; then if [ -n "$WAYLAND_DISPLAY" ]; then - DMENU="bemenu" + DMENU="tofi" + DEFARGS="--prompt-text" elif [ -n "$DISPLAY" ]; then DMENU="dmenu" + DEFARGS="-p" else printf "Can't tell if Wayland or X; what gives?\n" exit 1 fi fi -DMENU_PROMPT=$(playerctl -l | $DMENU $ARGS -p 'Players:') +DMENU_PROMPT=$(playerctl -l | $DMENU $ARGS $DEFARGS 'Players:') [ -z "$DMENU_PROMPT" ] && exit 1 PLAYERCONTROLS_PROMPT=$(echo "play-pause -- cgit v1.2.3