-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathd-menu
More file actions
executable file
·23 lines (20 loc) · 828 Bytes
/
d-menu
File metadata and controls
executable file
·23 lines (20 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
source d-var.conf
menuopts=("Powermenu" "Change Wallpaper" "Link handler stuff" "Music Menu" "Pirate Mode" "Insert Unicodes Emoji/Icons" "Dictionary" "Set Reminder" "Time & Date Now" "System Stats" "YouTube" "TODO" "Web Search")
chosen=$(printf '%s\n' "${menuopts[@]}" | $D_MENU)
case "$chosen" in
"${menuopts[0]}") d-power ;;
"${menuopts[1]}") d-walls ;;
"${menuopts[2]}") d-stuff ;;
"${menuopts[3]}") d-mpdplay ;;
"${menuopts[4]}") d-pirt ;;
"${menuopts[5]}") d-unicodes ;;
"${menuopts[6]}") d-dict ;;
"${menuopts[7]}") d-remind ;;
"${menuopts[8]}") d-time ;;
"${menuopts[9]}") d-stats ;;
"${menuopts[10]}") ytfzf -D ;;
"${menuopts[11]}") d-todo ;;
"${menuopts[12]}") d-search ;;
*) exit 1 ;;
esac