diff options
Diffstat (limited to 'mprisctl')
-rwxr-xr-x | mprisctl | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |