script/dmenu/dmenu-sysmon.sh (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh declare options=("htop bashtop gtop") choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'System monitor ') case "$choice" in htop) choice="htop" ;; bashtop) choice="bashtop" ;; gtop) choice="gtop" ;; *) exit 1 ;; esac kitty -e "$choice"