summaryrefslogtreecommitdiffstats
path: root/.local/bin/b-prompt
blob: 2f98e597a87bd1caee35664bd1b1d61adf688d6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# $1: newline-separated choices
# $2: prompt string

if [ "$WAYLAND_DISPLAY" ]; then
    menu_font='Source Code Pro Medium 10.5'
    printf "$1" | wmenu -i -p "$2" -f "$menu_font"
else
    menu_font='Source Code Pro Medium-10.5'
    printf "$1" | dmenu -i -p "$2" -fn "$menu_font"
fi