Files
sxmo-utils/scripts/core/sxmo_brun.sh
Willow Barraco be4a4366ff Fix sxmo_brun.sh with recent changes
NOw that we need SXMO_MENU, we had the same fallback when it is left
unset than in sxmo_dmenu.sh

We also fix the typo on bmenu.
2024-10-30 21:23:53 +01:00

33 lines
466 B
Bash

#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2022 Sxmo Contributors
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. sxmo_common.sh
if [ -z "$SXMO_MENU" ]; then
case "$SXMO_WM" in
sway)
SXMO_MENU=bemenu
;;
dwm)
SXMO_MENU=dmenu
;;
esac
fi
case "$SXMO_MENU" in
dmenu)
exec dmenu_run "$@"
;;
bemenu)
exec bemenu-run "$@"
;;
wofi)
exec wofi -O alphabetical -i --show run "$@"
;;
esac