reboot indicator

This commit is contained in:
Morgan McMillian 2021-06-01 05:47:25 -07:00
parent 5b6df3bb57
commit 474306b18a

View file

@ -27,11 +27,18 @@ esac
SSHDSTATUS=$(systemctl is-active ssh)
if [[ $SSHDSTATUS == "active" ]];
then
SSHWARN="⚠️ |"
SSHWARN="🐧|"
else
SSHWARN=""
fi
if [ -f /var/run/reboot-required ]
then
RBT="⚠️ "
else
RBT=""
fi
source $HOME/.config/sway/displays.sh
# swaymsg -t get_outputs
# LAPTOP="eDP-1"
@ -90,4 +97,4 @@ then
MTEXT=""
fi
echo "$MTEXT $WEATHER $DISPSTAT $POWER $STATE $DATE | $SSHWARN"
echo "$MTEXT $WEATHER $DISPSTAT $POWER $STATE $DATE | $SSHWARN$RBT"