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