rmenu/examples/dmenu.sh

11 lines
259 B
Bash
Raw Permalink Normal View History

2024-04-03 22:47:36 +02:00
#!/bin/sh
# basic dmenu-like implementation
eval "`printf 'ls /\ndf -h\nwho\nfoot -e top' | rmenu -f dmenu`"
# supports dmenu
echo "========="
echo try "\"printf 'foo\\\\nbar\\\\nbaz' | rmenu -f dmenu\""
echo try "\"exec \`dmenu_path | rmenu -f dmenu\`\""