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)
|
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"
|
||||||
|
|
Loading…
Reference in a new issue