16 lines
313 B
Bash
Executable File
16 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
|
|
commandList="tea
|
|
git
|
|
hcloud
|
|
nmap -sn 192.168.0.0/24 2>/dev/null | grep -E 'report|MAC' "
|
|
|
|
if ! command -v wofi >/dev/null 2>&1; then
|
|
echo "wofi is not installed"
|
|
exit 1
|
|
fi
|
|
selection=$(echo "$commandList" | wofi --prompt "Cheat Sheet" --dmenu)
|
|
|
|
[ -z "$selection" ] && echo "nothing selected"
|
|
exit 1
|