diff --git a/bin/mcc b/bin/mcc index 06800f9..eda9989 100755 --- a/bin/mcc +++ b/bin/mcc @@ -3,6 +3,12 @@ # Copyright (C) 2019-2021 napcok # EDITOR=geany +if hash btop 2>/dev/null; then + BTOP="btop" + else + BTOP="bpytop" +fi + case $LANG in pl*) 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="Info:LBL" "" \ --field="Neofetch:FBTN" "terminator -x bash -c 'neofetch;bash'" \ ---field="BTOP:FBTN" "terminator -x btop" \ +--field="$BTOP:FBTN" "terminator -x $BTOP" \ --field=" :LBL" \ > $res1 &