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
base() { base() {
ptext while true; do
sleep $REFRESHDELAY ptext
base sleep $REFRESHDELAY
done
} }
setloading setloading
setcolors2d setcolors2d
ptext
base base
printf "$0: Stopped printing." printf "$0: Stopped printing."

View file

@ -8,21 +8,6 @@ LOADTEXT="Loading" # load text
mkdir -p $HOME/.config/speedwm/ 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 # run status
rstatus() { rstatus() {
while true; do while true; do
@ -50,4 +35,22 @@ statusfunc() {
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 statusfunc