dotfiles/scripts/dmenu/dmenu-sysmon.sh
Smirnov Olexandr 07805d44aa 🎨 Update config
2020-11-11 22:48:06 +02:00

17 lines
318 B
Bash
Executable file

#!/bin/sh
declare options=("htop
bashtop
gtop
quit")
choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'System monitor ')
case "$choice" in
htop) choice="htop" ;;
bashtop) choice="bashtop" ;;
gtop) choice="gtop" ;;
quit) echo "Program terminated." && exit 1 ;;
*) exit 1 ;;
esac
kitty -e "$choice"