reload any bash-script conky inside mxlinux

For issues with MX that has been modified from the initial install. Example: adding packages that then cause issues.
Message
Author
drogon69
Posts: 38
Joined: Sat Jun 20, 2020 9:36 am

reload any bash-script conky inside mxlinux

#1 Post by drogon69 »

mxlinux use for it conkys conkymanager 2 that is what it is.

however from the looks i see this is the script if i not mistaken.

Code: Select all

#!/bin/sh

if [ x"${DESKTOP_SESSION##*/}" = x"lightdm-xsession" ]; then 
   sleep 0s
   killall conky
   cd "$HOME/.conky/MX-CowonBlue"
   conky -c "$HOME/.conky/MX-CowonBlue/MX-Cowon_blue_roboto" &
   exit 0
fi
if [ x"${DESKTOP_SESSION##*/}" = x"xfce" ]; then 
   sleep 0s
   killall conky
   cd "$HOME/.conky/MX-MyFirst"
   conky -c "$HOME/.conky/MX-MyFirst/conkyrc" &
   exit 0
fi
however what if you can reload the script to stop working the official conky to another one .
so reload conky in some script without conkymanager 2 but from inside a stylechanger with that theme that you use at this time.
if this is possible i dont know i do some testings at this moment.
but some how conky must reload and restart that is what it is , but all it do is killing haha.

i need a command for reloading conky to another start i push on another conky , but not killing it

ps , ported is easy for me but i need the right commands in bash , i have searh , and i can start with

if i try this

i know the command start is wrong but the exec is not

Code: Select all

if [ x"${DESKTOP_SESSION##*/}" = x"xfce" ]; then 
   sleep 0s
   killall conky
   cd "$HOME/.conky/MX-CowonBlue"
   conky -c "$HOME/.conky/MX-CowonBlue/MX-Cowon_blue_dinreg" &
   exit 0
fi
if [ x"${DESKTOP_SESSION##*/}" = x"xfce" ]; then 
   sleep 0s
   Start conky
   cd "$HOME/.conky/MX-antiX17"
   Exec=conky -c "$HOME/.conky/MX--antiX17/MX-antiX17" &
   exit 0
fi
what is loaded on the desktop conky must be killall , but the next reload must be execute to another conky and restart that is how it must work inside bash , for correct working , but i dont find any command for reloading the mxlinux script of conky-startup.sh that is strange

the firt code = working so it kills the running conky , not one problem , but the reload of startup by execute the other one is not loading , because the killaal in the second one is wrong , must be replace by another command like reload the startup-conky again and push another by execute a new running conky that is what it must handle inside the bash script
so if you jump arround from theme to theme it will change every conky with another theme that is what it is 9_9

Return to “MX Modified”