btop or bpytop in mcc

master
Daniel Napora 2021-10-05 18:53:52 +02:00
parent f06724ded5
commit 6e0e220f6c
1 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@
# Copyright (C) 2019-2021 napcok <napcok@gmail.com> # Copyright (C) 2019-2021 napcok <napcok@gmail.com>
# #
EDITOR=geany EDITOR=geany
if hash btop 2>/dev/null; then
BTOP="btop"
else
BTOP="bpytop"
fi
case $LANG in case $LANG in
pl*) pl*)
TITLE="Centrum Sterowania Mabox" TITLE="Centrum Sterowania Mabox"
@ -242,7 +248,7 @@ yad --plug=$KEY --tabnum=1 --text="$SYSTEM_DESC" --columns=2 --align="center" --
--field="LXRandR:FBTN" "lxrandr" \ --field="LXRandR:FBTN" "lxrandr" \
--field="<b>Info</b>:LBL" "" \ --field="<b>Info</b>:LBL" "" \
--field="Neofetch:FBTN" "terminator -x bash -c 'neofetch;bash'" \ --field="Neofetch:FBTN" "terminator -x bash -c 'neofetch;bash'" \
--field="BTOP:FBTN" "terminator -x btop" \ --field="$BTOP:FBTN" "terminator -x $BTOP" \
--field=" :LBL" \ --field=" :LBL" \
> $res1 & > $res1 &