CHK=$(ssh -4 -p 22 -l loginusername -i /Users/myusername/.ssh/privatekey.pem server.example.com "systemctl is-active nftables"); STR=$(ssh -4 -p 22 -l loginusername -i /Users/myusername/.ssh/privatekey.pem server.example.com "systemctl status nftables | grep -i 'active: '; systemctl status nftables | grep -i 'main'"); if echo "$CHK" | grep -iEq "^active"; then XWX='024b30'; else XWX='ea3323' && /usr/bin/say "Firewall"; fi; /Users/myusername/bin/terminal-widget --target widget1 --font "B612" --timestamp --title "server.example.com - $CHK" --background "$XWX" --text "$STR"