reboot indicator
This commit is contained in:
parent
5b6df3bb57
commit
474306b18a
1 changed files with 9 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue