dotfiles/.config/waybar/waybar_heron/modules/vpn.sh
2025-12-18 12:09:34 -03:00

4 lines
185 B
Bash

#!/bin/bash
ip route | grep -q 'proton0' \
&& echo '{"text":"Connected","class":"connected","percentage":100}' \
|| echo '{"text":"Disconnected","class":"disconnected","percentage":0}'