From 63feeb9f369fc6176e85c1c2d8fcc863caad1946 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Tue, 10 Feb 2026 12:32:48 +0100 Subject: start new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .config/waybar/modules/vpn.sh | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 .config/waybar/modules/vpn.sh (limited to '.config/waybar/modules/vpn.sh') diff --git a/.config/waybar/modules/vpn.sh b/.config/waybar/modules/vpn.sh deleted file mode 100755 index c4d50fa..0000000 --- a/.config/waybar/modules/vpn.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -e -[ -n "$DEBUG" ] && set -x - -case "$1" in -toggle) exit 1 ;; -esac - -extern_ip=$(curl -SsfL http://api.ipify.org/?format=text) - -vpn_is_up() { - case "$extern_ip" in - 138.201.245.159) return 0 ;; # hetzner node - esac - return 1 -} - -if vpn_is_up; then - printf '{"text": "󰒃", "tooltip": "external ip is %s"}\n' "$extern_ip" -else - # printf '{"text": "󰦜", "tooltip": "disconnected"}\n' - printf '{}\n' -fi -- cgit 1.4.1