diff options
| author | 2026-04-21 01:24:42 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:42 +0100 | |
| commit | d48f8b442648eb837929b5d6538d7d75c4746899 (patch) | |
| tree | 054f72bbf177c0caa276e9f8ac0a6e1742788421 /dot_config/waybar/executable_wg-status.sh | |
| parent | 95aed3ac22cf80205a2a18cd4b4410338893d066 (diff) | |
| download | dotfiles-d48f8b442648eb837929b5d6538d7d75c4746899.tar.gz dotfiles-d48f8b442648eb837929b5d6538d7d75c4746899.tar.bz2 dotfiles-d48f8b442648eb837929b5d6538d7d75c4746899.zip | |
waybar: custom/wifi via iw for bond-slaved wlan; drop wg; shorter memory
Diffstat (limited to 'dot_config/waybar/executable_wg-status.sh')
| -rw-r--r-- | dot_config/waybar/executable_wg-status.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/dot_config/waybar/executable_wg-status.sh b/dot_config/waybar/executable_wg-status.sh deleted file mode 100644 index 1fd7241..0000000 --- a/dot_config/waybar/executable_wg-status.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# Emit waybar JSON describing wireguard status. Uses `ip` (no root needed). -set -eu - -iface=$(ip -br link show type wireguard 2>/dev/null | awk 'NF{print $1; exit}') - -if [ -n "${iface:-}" ]; then - printf '{"text":"WG %s","class":"up","tooltip":"%s"}\n' \ - "$iface" \ - "$(ip -br -4 addr show dev "$iface" 2>/dev/null | awk '{for(i=3;i<=NF;i++)printf "%s ",$i}')" -else - printf '{"text":"WG off","class":"down","tooltip":"no wireguard interface"}\n' -fi |
