potential fix for status crashing until a restart
This commit is contained in:
parent
34f2598d8d
commit
3cb09a8709
|
@ -4,12 +4,28 @@
|
|||
|
||||
STATUSBAR="speedwm-stellar" # should be stellar
|
||||
IN_ARGS="$@" # arguments
|
||||
LOADTEXT="Loading" # load text
|
||||
|
||||
mkdir -p $HOME/.config/speedwm/
|
||||
|
||||
# run status
|
||||
rstatus() {
|
||||
while true; do
|
||||
$STATUSBAR $IN_ARGS > /tmp/statusbar-log
|
||||
done
|
||||
}
|
||||
|
||||
# run loop
|
||||
statusfunc() {
|
||||
pgrep -x $STATUSBAR || $STATUSBAR $IN_ARGS > /tmp/statusbar-log &
|
||||
sleep 3
|
||||
if pgrep -x $STATUSBAR > /dev/null; then
|
||||
clear
|
||||
printf "Status bar is already running, continuing loop."
|
||||
sleep 3
|
||||
else
|
||||
speedwm -s "$LOADTEXT"
|
||||
rstatus
|
||||
fi
|
||||
|
||||
statusfunc
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue