waybar-config/scripts/fortivpn.sh
2024-03-01 16:32:45 -05:00

3 lines
186 B
Bash
Executable file

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