mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
Added this dmenu script for launching some system monitoring applications.
This commit is contained in:
parent
dd26109e11
commit
cf50f99137
1 changed files with 49 additions and 0 deletions
49
.dmenu/dmenu-sysmon.sh
Executable file
49
.dmenu/dmenu-sysmon.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/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
|
Loading…
Add table
Reference in a new issue