Add xfce4-panel-genmon-vpnip.sh script for xfce panel
This commit is contained in:
parent
a20697e1ce
commit
12afa2866a
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
ip="$(ip a s tun0 2>/dev/null | grep -o -P '(?<=inet )[0-9]{1,3}(\.[0-9]{1,3}){3}')"
|
||||
|
||||
if [ "$ip" != "" ]; then
|
||||
printf "<icon>network-vpn-symbolic</icon>"
|
||||
printf "<txt>${ip}</txt>"
|
||||
printf "<tool>VPN IP</tool>"
|
||||
else
|
||||
printf "\0x0"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user