aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/dmenu
blob: 6c1494bb68e206f726f3cbcc9974c802809de96d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env sh

main() {
	if [ -n "$WAYLAND_DISPLAY" ]
	then
		exec fuzzel --dmenu "$@"
	fi

	if [ -n "$DISPLAY" ]
	then
		if command -v rofi > /dev/null
		then
			exec rofi -dmenu "$@"
		fi

		exec /usr/bin/dmenu "$@"
	fi
}

main "$@"