tweak sshd status
This commit is contained in:
parent
de3eaea7e3
commit
60a6fb3cfa
1 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,8 @@ case "$BSTATE" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
SSHDSTATUS=$(systemctl is-active ssh)
|
SSHD=$(systemctl list-unit-files|egrep ^sshd?.service|awk '{print $1}')
|
||||||
|
SSHDSTATUS=$(systemctl is-active $SSHD)
|
||||||
if [[ $SSHDSTATUS == "active" ]];
|
if [[ $SSHDSTATUS == "active" ]];
|
||||||
then
|
then
|
||||||
SSHWARN="🐧"
|
SSHWARN="🐧"
|
||||||
|
@ -39,10 +40,10 @@ else
|
||||||
RBT=""
|
RBT=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $HOME/.config/sway/displays.sh
|
|
||||||
# swaymsg -t get_outputs
|
# swaymsg -t get_outputs
|
||||||
# LAPTOP="eDP-1"
|
# LAPTOP="eDP-1"
|
||||||
# EXTERNAL="HDMI-A-1"
|
# EXTERNAL="HDMI-A-1"
|
||||||
|
source $HOME/.config/sway/displays.sh
|
||||||
LAPSTAT=$(swaymsg -t get_outputs -r|jq --arg DISP "$LAPTOP" '.[] | select(.name==$DISP) | .active')
|
LAPSTAT=$(swaymsg -t get_outputs -r|jq --arg DISP "$LAPTOP" '.[] | select(.name==$DISP) | .active')
|
||||||
if [[ $LAPSTAT == "true" ]];
|
if [[ $LAPSTAT == "true" ]];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue