improve stellar and starter script

This commit is contained in:
speedie 2022-11-21 12:41:39 +01:00
parent 44a6b20d47
commit 6eeeab82aa
2 changed files with 22 additions and 20 deletions

View file

@ -558,15 +558,14 @@ ptext() {
# base
base() {
ptext
sleep $REFRESHDELAY
base
while true; do
ptext
sleep $REFRESHDELAY
done
}
setloading
setcolors2d
ptext
base
printf "$0: Stopped printing."

View file

@ -8,21 +8,6 @@ LOADTEXT="Loading" # load text
mkdir -p $HOME/.config/speedwm/
case "$1" in
"-h")
echo "speedwm_status - stellar launcher"
echo ""
echo "-r Restart stellar"
echo "No arguments Run stellar"
echo ""
echo "See speedwm-help for more information."
exit 0
;;
"-r")
pkill "$STATUSBAR" ; sleep 2 ; statusfunc
;;
esac
# run status
rstatus() {
while true; do
@ -50,4 +35,22 @@ statusfunc() {
statusfunc
}
case "$1" in
"-h")
echo "speedwm_status - stellar launcher"
echo ""
echo "-s Stop stellar"
echo "-r Restart stellar"
echo "No arguments Run stellar"
echo ""
echo "See speedwm-help for more information."
exit 0
;;
"-r")
pkill "$STATUSBAR" ; sleep 2 ; statusfunc
;;
"-s") pkill "$STATUSBAR"
;;
esac
statusfunc