waybar-config/scripts/fortivpn.sh

4 lines
186 B
Bash
Raw Normal View History

2024-03-01 16:32:45 -05:00
#!/bin/bash
STATUS=$(forticlient vpn status|grep Status:|cut -d: -f2|tr '[:upper:]' '[:lower:]'|xargs)
echo "{ \"status\": \"$STATUS\", \"alt\": \"$STATUS\", \"tooltip\": \"$STATUS\" }"