2022-10-01 22:46:40 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# speedwm_status
|
|
|
|
# status bar manager
|
|
|
|
|
2022-10-09 15:11:42 +02:00
|
|
|
STATUSBAR="status"
|
2022-10-01 22:46:40 +02:00
|
|
|
IN_ARGS="$@"
|
|
|
|
|
|
|
|
# check if the two values are the same, if not then we use the rc config
|
|
|
|
if [ "$STATUSBAR" != "$STATUSBAR2" ]; then
|
|
|
|
STATUSBAR="$STATUSBAR2"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pgrep -x $STATUSBAR || $STATUSBAR $IN_ARGS > /tmp/statusbar-log &
|
|
|
|
sleep 3
|
|
|
|
|
|
|
|
$0 && exit 0
|