mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
49 lines
1 KiB
Bash
Executable file
49 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
# ____ _____
|
|
# | _ \_ _| Derek Taylor (DistroTube)
|
|
# | | | || | http://www.youtube.com/c/DistroTube
|
|
# | |_| || | http://www.gitlab.com/dwt1/
|
|
# |____/ |_|
|
|
#
|
|
# Dmenu script for launching system monitoring programs.
|
|
|
|
|
|
declare -a options=(" htop
|
|
glances
|
|
gtop
|
|
iftop
|
|
iotop
|
|
iptraf-ng
|
|
nmon
|
|
s-tui
|
|
quit ")
|
|
|
|
choice=$(echo -e "${options[@]}" | dmenu -l -i -p 'System monitors: ')
|
|
|
|
if [ "$choice" == ' quit ' ]; then
|
|
echo "Program terminated."
|
|
fi
|
|
if [ "$choice" == ' htop ' ]; then
|
|
exec st -e htop
|
|
fi
|
|
if [ "$choice" == ' glances ' ]; then
|
|
exec st -e glances
|
|
fi
|
|
if [ "$choice" == ' gtop ' ]; then
|
|
exec st -e gtop
|
|
fi
|
|
if [ "$choice" == ' iftop ' ]; then
|
|
exec st -e gksu iftop
|
|
fi
|
|
if [ "$choice" == ' iotop ' ]; then
|
|
exec st -e gksu iotop
|
|
fi
|
|
if [ "$choice" == ' iptraf-ng ' ]; then
|
|
exec st -e gksu iptraf-ng
|
|
fi
|
|
if [ "$choice" == ' nmon ' ]; then
|
|
exec st -e nmon
|
|
fi
|
|
if [ "$choice" == ' s-tui ' ]; then
|
|
exec st -e s-tui
|
|
fi
|