improve stellar and starter script
This commit is contained in:
parent
44a6b20d47
commit
6eeeab82aa
|
@ -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."
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue